|
|
@@ -974,11 +974,10 @@ cc.Class({
|
|
|
// shopId: "coin_99"
|
|
|
// };
|
|
|
// ThirdPartyBuyGood(JSON.stringify(goodInfo));
|
|
|
- let shopId = 1;
|
|
|
let userId = g_GlobalUserInfo.GetGlobalUserData().dwUserID;
|
|
|
let sendData = {
|
|
|
userId: userId,
|
|
|
- shopId: shopId,
|
|
|
+ shopId: 1,
|
|
|
platformId: 1
|
|
|
};
|
|
|
//info { return, data, timestamp }
|
|
|
@@ -992,7 +991,7 @@ cc.Class({
|
|
|
this.ShowTips("购买商品成功,获得钻石99个!");
|
|
|
});
|
|
|
ThirdPartyBuyGood(JSON.stringify({
|
|
|
- itemID: shopId
|
|
|
+ itemID: "buyId_ios_2000"
|
|
|
}));
|
|
|
});
|
|
|
},
|
|
|
@@ -1014,7 +1013,7 @@ cc.Class({
|
|
|
orderId: this.orderId,
|
|
|
receipt: payData
|
|
|
};
|
|
|
- //info { return, data, timestamp }
|
|
|
+ //info { return, transaction_id, UserMedal }
|
|
|
WebCenter.httpPOST(webUrl, sendData, (info) => {
|
|
|
cc.log("post buy good receipt return, ", info);
|
|
|
if ("0" != info.return) {
|