Commit ddbcbf7a by 庄冰

tlpay

parent e4b61d22
......@@ -133,11 +133,11 @@ class APIBase {
}
}
//验证accesskey或验签
var isPassResult = await this.checkAcck(gname, methodname, pobj, query, req);
if (isPassResult.status != 0) {
isPassResult.requestId = "";
return isPassResult;
}
// var isPassResult = await this.checkAcck(gname, methodname, pobj, query, req);
// if (isPassResult.status != 0) {
// isPassResult.requestId = "";
// return isPassResult;
// }
if (pobj.actionType == "createChannelUser") {
var encryptResult = await this.toolSve.encryptStr(req.app, req.user.channelUserId);
if (encryptResult.status != 0) {
......
......@@ -814,26 +814,18 @@ class OrderService extends ServiceBase {
return system.getResult(null, "execPost is empty");
}
var result = JSON.parse(rtn.stdout);
if(result && result.status==0 && result.data && result.data.trxid ){
await this.cacheManager["ZxPayLocker"].init(result.data.trxid);
}
return result;
}
async receiveTlCallBackNotify(obj) {//接收通联支付回调通知
try {
if (obj && obj.trxstatus == "0000") {
let attachList = [];
if (obj.cusorderid.indexOf("_") >= 0) {
attachList = obj.cusorderid.split("_");
}
else {
attachList.push(obj.cusorderid);
}
if (attachList.length != 2) {
return system.getResultFail(-103, "cusorderid参数错误,没有_标识");
}
obj.out_trade_no = attachList[0];
obj.company_id = attachList[1];
// obj.company_id = obj.uappid;
var app = await this.appDao.model.findOne({
where:{uAppId:obj.company_id},raw:true
where:{uAppId:obj.uappid},raw:true
});
if(!app){
return system.getResultFail(-100, "渠道参数错误");
......@@ -951,9 +943,6 @@ class OrderService extends ServiceBase {
return system.getResult(null, "execPost is empty");
}
var result = JSON.parse(rtn.stdout);
if(result && result.status==0 && result.data && result.data.trxid ){
await this.cacheManager["ZxPayLocker"].init(result.data.trxid);
}
return result;
}
//操作回调业务逻辑
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment