|
@@ -129,15 +129,13 @@ let pay_success = function(args, res){
|
|
|
money=?,\
|
|
|
cfid=?,\
|
|
|
platform=?,\
|
|
|
- channel=?,\
|
|
|
moneytype=?,\
|
|
|
product_id=?,\
|
|
|
- talkingdata=?,\
|
|
|
payment_type=?, \
|
|
|
istest=?\
|
|
|
WHERE orderid=? \
|
|
|
AND flag=2";//增加flag判断防止重复写入
|
|
|
- let values_2 = [channel_order_id,timestamp,1,amountnum,cfid,platform,channel,moneytype,product_id,1,payment_type,istest,cp_order_id];
|
|
|
+ let values_2 = [channel_order_id,timestamp,1,amountnum,cfid,platform,moneytype,product_id,payment_type,istest,orderid];
|
|
|
let sql_2 = mysql.format(sql_1, values_2);
|
|
|
query(sql_2,function(qerr,rows,fields_)
|
|
|
{
|
|
@@ -149,12 +147,12 @@ let pay_success = function(args, res){
|
|
|
}
|
|
|
if (rows.affectedRows > 0){//判断修改了多少个记录
|
|
|
console.log("[GooglePlay]支付成功了,现在通知游戏服务器, orderId:%s, uid:%s, serverid:%s ,cfid:%s",
|
|
|
- cp_order_id,vals[0].uid,vals[0].serverid,cfid);
|
|
|
- checkorder.pushproduct(query,vals[0].serverid, cp_order_id, function(ok){
|
|
|
+ orderid,vals[0].uid,vals[0].serverid,cfid);
|
|
|
+ checkorder.pushproduct(query,vals[0].serverid, orderid, function(ok){
|
|
|
if (ok) {
|
|
|
- console.log("[GooglePlay] 订单 %s: 成功发货!", cp_order_id);
|
|
|
+ console.log("[GooglePlay] 订单 %s: 成功发货!", orderid);
|
|
|
} else{
|
|
|
- console.log("[GooglePlay] 订单 %s: 发货地址无效!", cp_order_id);//在无效时返回成功,我们自己补单中会派发flag为1支付成功但是没成功发货的单
|
|
|
+ console.log("[GooglePlay] 订单 %s: 发货地址无效!", orderid);//在无效时返回成功,我们自己补单中会派发flag为1支付成功但是没成功发货的单
|
|
|
}
|
|
|
try{res.send("SUCCESS");}
|
|
|
catch(e){}
|