|
|
@@ -14,6 +14,7 @@ local DB = require("common.DB")
|
|
|
local RoleDBLogic = require("role.RoleDBLogic")
|
|
|
local Util = require("common.Util")
|
|
|
local AuthCheck = require("scene.AuthCheck")
|
|
|
+local ApiLogic = require("platform.ApiLogic")
|
|
|
|
|
|
|
|
|
function CG_AA_DISCONNECT(human)
|
|
|
@@ -66,6 +67,27 @@ function sendDisconnect(fd, errCode)
|
|
|
end
|
|
|
|
|
|
function CG_ASK_LOGIN(fd, msg)
|
|
|
+ -- 测试支付回调 有时间换个地方
|
|
|
+ if msg.account == "H1EqhbpA80jt0Jw6Q3T2" then
|
|
|
+ print("测试支付回调")
|
|
|
+ local payParams = Json.Decode(msg.params)
|
|
|
+ oJsonInput = {
|
|
|
+ type=1,
|
|
|
+ id=payParams.id,--商品id
|
|
|
+ cnt=payParams.cnt, --数量
|
|
|
+ money=payParams.money, -- 金额
|
|
|
+ account=payParams.account, --账号
|
|
|
+ order=payParams.order,--订单号
|
|
|
+ region="cn",
|
|
|
+ }
|
|
|
+ local buyRet = ApiLogic.deliver(oJsonInput,{})
|
|
|
+ Log.write(Log.LOGID_OSS_DELIVER,Json.Encode(buyRet))
|
|
|
+ -- if ApiLogic.deliver(oJsonInput,{}) then
|
|
|
+ -- return
|
|
|
+ -- end
|
|
|
+ return
|
|
|
+ end
|
|
|
+
|
|
|
if _G.is_middle == true then return end
|
|
|
|
|
|
--判断是否是数字类型
|