|
@@ -77,11 +77,11 @@ let pay_success = function(args, res){
|
|
|
let userid = obj.userid; //玩家的渠道帐号
|
|
|
let uid = obj.uid; //玩家游戏uid
|
|
|
let cfid = obj.cfid // 计费点
|
|
|
- let platformid = "googleplay";
|
|
|
+ let platform = "googleplay";
|
|
|
let ti = new Date().Format("yyyy-MM-dd hh:mm:ss");
|
|
|
|
|
|
console.log("[GooglePlay] 订单 %s 请求 (%s):\n\tchannel_order_id=%s, serverid=%s,uid=%s,userid=%s,platform=%s",
|
|
|
- orderid, ti, channel_order_id, serverid, uid, userid, platformid);
|
|
|
+ orderid, ti, channel_order_id, serverid, uid, userid, platform);
|
|
|
|
|
|
|
|
|
let sql = mysql.format("SELECT * FROM payinfo where orderid=?", [orderid]);//在mysql库中检查订单号
|
|
@@ -103,11 +103,11 @@ let pay_success = function(args, res){
|
|
|
|
|
|
//检查订单
|
|
|
let channel = vals[0].channel
|
|
|
- let conf = config.parse(platformid, channel, cfid);
|
|
|
+ let conf = config.parse(platform, channel, cfid);
|
|
|
let amountnum = conf.price
|
|
|
let moneytype = conf.typename;
|
|
|
if (conf.cfid == 0){
|
|
|
- console.log("[GooglePlay] channel:%s获取cfid失败为platformid:%s,cfid:%s",channel, platformid, cfid);
|
|
|
+ console.log("[GooglePlay] channel:%s获取cfid失败为platform:%s,cfid:%s",channel, platform, cfid);
|
|
|
try{res.send("fail");}
|
|
|
catch(e){}
|
|
|
return
|