Commit 309a157a by 孙亚楠

d

parent 1f243d91
...@@ -67,6 +67,9 @@ class BpoSDPJApi { ...@@ -67,6 +67,9 @@ class BpoSDPJApi {
if (!obj.outTradeNo) { if (!obj.outTradeNo) {
return this.getBaseResult(1002001,"商户订单号[outTradeNo]不存在"); return this.getBaseResult(1002001,"商户订单号[outTradeNo]不存在");
} }
if (!obj.notifyUrl) {
return this.getBaseResult(1002001,"商户订单号[notifyUrl]不存在");
}
let otnLen = this.trim(obj.outTradeNo).length; let otnLen = this.trim(obj.outTradeNo).length;
if (otnLen < 10 || otnLen > 32) { if (otnLen < 10 || otnLen > 32) {
return this.getBaseResult(1002001,"商户订单号[outTradeNo]长度10-32"); return this.getBaseResult(1002001,"商户订单号[outTradeNo]长度10-32");
...@@ -128,6 +131,7 @@ class BpoSDPJApi { ...@@ -128,6 +131,7 @@ class BpoSDPJApi {
_cCashInfo.amt = Number(obj.amt || 0); _cCashInfo.amt = Number(obj.amt || 0);
_cCashInfo.idName = this.trim(obj.idName) || ""; _cCashInfo.idName = this.trim(obj.idName) || "";
_cCashInfo.idNo = this.trim(obj.idNo) || "" ; _cCashInfo.idNo = this.trim(obj.idNo) || "" ;
_cCashInfo.notify_url=this.trim(obj.notifyUrl) || "" ;
// 保存签约数据 // 保存签约数据
_cCashInfo = await this.ccashinfoSve.create(_cCashInfo); _cCashInfo = await this.ccashinfoSve.create(_cCashInfo);
} }
......
...@@ -63,7 +63,7 @@ module.exports = (db, DataTypes) => { ...@@ -63,7 +63,7 @@ module.exports = (db, DataTypes) => {
type:DataTypes.BIGINT, type:DataTypes.BIGINT,
allowNull: true, allowNull: true,
}, },
notify_api:{ notify_url:{
type:DataTypes.STRING, type:DataTypes.STRING,
allowNull: true, allowNull: true,
}, },
......
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