Commit e73e2cc4 by 王昆

gsb

parent bcd68502
......@@ -101,7 +101,8 @@ class BpoSDPJApi {
idName: obj.idName,
idNo: obj.idNo,
outTradeNo: obj.outTradeNo,
nonceStr: obj.nonceStr
nonceStr: obj.nonceStr,
notifyUrl: obj.notifyUrl,
};
let sign = system.getSign(param, api.key, this.EXCEPT_KEYS);
if (sign != obj.sign) {
......@@ -131,7 +132,7 @@ class BpoSDPJApi {
_cCashInfo.amt = Number(obj.amt || 0);
_cCashInfo.idName = this.trim(obj.idName) || "";
_cCashInfo.idNo = this.trim(obj.idNo) || "" ;
_cCashInfo.notify_url=this.trim(obj.notifyUrl) || "" ;
_cCashInfo.notify_url = this.trim(obj.notifyUrl) || "";
// 保存签约数据
_cCashInfo = await this.ccashinfoSve.create(_cCashInfo);
}
......@@ -139,7 +140,7 @@ class BpoSDPJApi {
// 拼接h5 http连接 http//xxx?mchtId=xxx&ecid=xxx&no=id
let _no = await this.setNo(_cCashInfo.id.toString());
_no = encodeURIComponent(_no);
let custormUrl = `http://bpohhr.gongsibao.com?no=${_no}&outTradeNo=${_cCashInfo.outTradeNo}&mchtId=${_cCashInfo.mchtId}`;
let custormUrl = `http://bpowx.gongsibao.com/sdpj?no=${_no}&outTradeNo=${_cCashInfo.outTradeNo}&mchtId=${_cCashInfo.mchtId}`;
// 生成二维码
let url =await this.qrClient.generateQR(custormUrl);
_cCashInfo.qrcode = url;
......@@ -548,8 +549,16 @@ class BpoSDPJApi {
} catch (e) {
console.log(e);
}
}
// 通过postman推送回调
async notifyGuestById(obj, req) {
this.notifyCash(obj.id);
}
// 推送回调
async notifyCash(id) {
// TODO 总统
}
getSuccessResult(msg = "success", data = {}) {
......
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