对《quick中的CCStore使用说明》的一点补充

如果需要服务端验证,可以

    Store.setReceiptVerifyServerUrl('http://yourdomain/verifyReceipt.php?')
    Store.setReceiptVerifyMode(cc.CCStoreReceiptVerifyModeServer, true) --true是sandbox

服务端是php的话,可以通过 file_get_contents(“php://input”) 得到post内容

$post_data = file_get_contents(“php://input”);

$post_json = json_decode($post_data, true);

$receipt = $post_json"receipt-data"];

就可以打包发给 https://sandbox.itunes.apple.com/verifyReceipthttps://buy.itunes.apple.com/verifyReceipt 做校验了

    $postData = json_encode(   
        array('receipt-data' => $receipt)   
    );

真是我的及时雨啊~~~虽然服务端不是php ,谢谢