Commit 53a526b2 by 王栋源

wdy

parent 1bf9a945
......@@ -26,6 +26,7 @@ class utilsTlBankSve {
this.customerinfoDao = System.getObject("db.customerinfoDao");
this.moneyaccountDao = System.getObject("db.moneyaccountDao");
this.tlorderDao = System.getObject("db.tlorderDao");
this.centerChannelUrl = settings.centerChannelUrl();
}
......@@ -349,6 +350,20 @@ class utilsTlBankSve {
result = "回调cusorderid参数错误,没有_标识";
return result;
}
if (attachList[0] && attachList[0].substr(0, 3) == "qft") {
var p = {
"actionProcess": "actionProcess参数不",
"actionType": "receiveCallBackNotify",
"actionBody": { "parmas": parmas },
"client_ip": client_ip
};
var qftstr = await this.restClient.execPost(p, this.centerChannelUrl + "web/payment/paymentApi/springBoard");
var qftjson = JSON.parse(qftstr.stdout);
if(qftjson.status>-1){
result="success"
}
return result;
} else {
var tmpCompanyId = attachList.length == 2 ? attachList[1] : attachList[2];
var payParam = await this.companypayparamDao.getOneByCompanyId(tmpCompanyId, 1);
......@@ -382,6 +397,7 @@ class utilsTlBankSve {
}
return result;
}
}
} catch (e) {
logCtl.error({
optitle: "通联回调业务处理---error异常",
......@@ -445,8 +461,8 @@ class utilsTlBankSve {
throw new Error(e.stack);
}
}
async opOtherCompanyNotify(sveItemCode,orderNo){
if(["zcdy3gy","zcdy6gy","zcdy1n"].indexOf(sveItemCode)>=0) {
async opOtherCompanyNotify(sveItemCode, orderNo) {
if (["zcdy3gy", "zcdy6gy", "zcdy1n"].indexOf(sveItemCode) >= 0) {
//TODO:操作别的公司回调
}
}
......@@ -514,7 +530,7 @@ class utilsTlBankSve {
var sqlWheres = { code: obj.out_trade_no };
var orderItem = await this.orderDao.model.findOne({
where: sqlWheres,
attributes: ["id", "code", "name","sveItemCode", "busPayOrderCode", "totalSum", "orderStatus", "orderPayStatus", "company_id", "createuser_id", "sveItemCode", "sveItemName", "subType"],
attributes: ["id", "code", "name", "sveItemCode", "busPayOrderCode", "totalSum", "orderStatus", "orderPayStatus", "company_id", "createuser_id", "sveItemCode", "sveItemName", "subType"],
include: [
{ model: this.orderDao.db.models.customerinfo, attributes: ["businessLicensePic", "customerType", "identityCardNo", "identityCardPic"] }
]
......@@ -525,7 +541,7 @@ class utilsTlBankSve {
return notifyResult;
}
//操作别的回调信息
this.opOtherCompanyNotify(orderItem.sveItemCode,obj.out_trade_no);
this.opOtherCompanyNotify(orderItem.sveItemCode, obj.out_trade_no);
if (Number(orderItem.totalSum * 100) != Number(obj.trxamt)) {
notifyResult.code = -450;
notifyResult.msg = "对应的订单支付金额不符";
......
......@@ -47,6 +47,13 @@ var settings = {
return "http://43.247.184.94:9200/";
}
},
centerChannelUrl: function () {
if (this.env == "dev") {
return "http://192.168.18.34:4011/";
} else {
return "https://center-channel/";
}
},
apiconfig: {
zxyTransferAppId: function () {//智薪云应用id
// return "1103817785";//线上
......
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