Commit 017783ae by 宋毅

tj

parent 7fbc278b
...@@ -108,6 +108,7 @@ class utilsTlBankSve { ...@@ -108,6 +108,7 @@ class utilsTlBankSve {
// var payParam = await this.companypayparamDao.getOneByCompanyId(company_id, 1); // var payParam = await this.companypayparamDao.getOneByCompanyId(company_id, 1);
var payParam = await this.getpaymentinfo(app_id); var payParam = await this.getpaymentinfo(app_id);
if (!payParam) { if (!payParam) {
var rtn = await this.restClient.execPost2(req_param, reqUrl);
return { status: -210, msg: "应用没有对应的支付凭证" } return { status: -210, msg: "应用没有对应的支付凭证" }
} }
var reqMethod = this.wxMethod; var reqMethod = this.wxMethod;
...@@ -334,11 +335,14 @@ class utilsTlBankSve { ...@@ -334,11 +335,14 @@ class utilsTlBankSve {
var payParam = await this.getpaymentinfo(uappid); var payParam = await this.getpaymentinfo(uappid);
if (!payParam) { if (!payParam) {
return system.getResult(null, "回调应用没有对应的支付凭证"); return system.getResult(null, "app_pay_param回调应用没有对应的支付凭证");
}
if (!payParam.notify_url) {
return system.getResult(null, "app_pay_param回调应用没有对应的支付成功通知url配置");
} }
var appinfo = await this.getappinfo(uappid); var appinfo = await this.getappinfo(uappid);
if (!appinfo) { if (!appinfo) {
return system.getResult(null, "回调应用没有对应的支付凭证"); return system.getResult(null, "app回调应用没有对应的支付凭证");
} }
var signResult = await this.resultSign(parmas, payParam.pay_key); var signResult = await this.resultSign(parmas, payParam.pay_key);
if (signResult.status != 0) { if (signResult.status != 0) {
...@@ -349,7 +353,7 @@ class utilsTlBankSve { ...@@ -349,7 +353,7 @@ class utilsTlBankSve {
parmas.uappid = attachList.length == 2 ? attachList[1] : attachList[2]; parmas.uappid = attachList.length == 2 ? attachList[1] : attachList[2];
//重写新签名 //重写新签名
var newparmas = await this.getReqBeforeParam(parmas, appinfo.uapp_secret); var newparmas = await this.getReqBeforeParam(parmas, appinfo.uapp_secret);
var backResult = await this.execReqInfo(null, payParam.notify_url, newparmas.req_param); var backResult = await this.restClient.execPost(newparmas.req_param, payParam.notify_url);
if (backResult.status != 0) { if (backResult.status != 0) {
return backResult; return backResult;
} }
......
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