Commit 6e68a03f by 孙亚楠

dd

parent b836ad1a
......@@ -14,8 +14,8 @@ class IborderbaseService extends ServiceBase {
this.paymentSve = system.getObject("service.order.paymentSve");
this.services = {
"1000": this.iborderSve, // 注册订单
"1010": this.iborderdzSve, // 代开订单
"1030": this.iborderdkSve, // 代账订单
"1010": this.iborderdkSve, // 代开订单
"1030": this.iborderdzSve, // 代账订单
"1040": this.iborderSve, // 增值服务
}
}
......@@ -32,16 +32,16 @@ class IborderbaseService extends ServiceBase {
async apiCreateOrder(params) {
this.trimObject(params);
if (!params.thirdNo) {
return system.getResult(null, `请传入订单id`);
return system.getResult(null, `请传入订单`);
}
let productType = this.trim(params.productTypes);
let productType = this.trim(params.productType);
let childSve = this.getService(productType);
if (!childSve) {
return system.getResult(null, `暂不支持此种产品类型:${productType}`);
}
try {
let channel = this.channelSve.findOne({channelNo: params.channelNo});
let channel =await this.channelSve.findOne({channelNo: params.channelNo});
if (!channel) {
return system.getResult(null, `渠道${params.channelNo}不存在`);
}
......
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