Commit 875411d1 by 孙亚楠

dd

parent de693421
......@@ -357,18 +357,19 @@ class OrderCtl extends CtlBase {
if (!pobj.product_id) {
return system.getResult(null, `参数错误 订单ID不能为空`);
}
if (!pobj.source_id) {
return system.getResult(null, `参数错误 来源ID不能为空`);
}
if (!pobj.source_no) {
return system.getResult(null, `参数错误 来源订单号不能为空`);
}
// if (!pobj.source_id) {
// return system.getResult(null, `参数错误 来源ID不能为空`);
// }
// if (!pobj.source_no) {
// return system.getResult(null, `参数错误 来源订单号不能为空`);
// }
if (!pobj.contact_mobile) {
return system.getResult(null, `参数错误 联系电话不能为空`);
}
if (!pobj.customer_name) {
return system.getResult(null, `参数错误 客户名称不能为空`);
}
pobj.source_id = pobj.source_id || '1001';
pobj.notes = pobj.desc || "工商注册,刻章,银行卡户,税务报到";
try {
return await this.orderSve.addSourceOrder(pobj);
......
......@@ -182,12 +182,12 @@ class System {
// merchant: "http://127.0.0.1:3101" + path,
// 订单服务
order: domain + ":3103" + path,
// order: "http://127.0.0.1:3103" + path,
// order: domain + ":3103" + path,
order: "http://127.0.0.1:3103" + path,
// 发票服务
invoice: domain2 + ":3105" + path,
// invoice: "http://127.0.0.1:3105" + path,
// invoice: domain2 + ":3105" + path,
invoice: "http://127.0.0.1:3105" + path,
// 用户中心
uc: domain + ":3106" + path ,
......
......@@ -649,8 +649,8 @@
``` javascript
{
"product_id":"10010000", //产品ID 必填 工商注册一体化请传"10010000"
"source_id":"1001", //来源ID 必填 单页面录入 "1001"
"source_no":"1567514119003310" //来源订单号 必填 单页面录入 当前时间戳
"source_id":"1001", //来源ID 非必填 单页面录入 "1001"
"source_no":"1567514119003310" //来源订单号 非必填
"contact_mobile":"133836395", //联系电话 必填
"customer_name":"1200", //客户名称 必填
"desc":"1567514119003310" //产品信息 非必填 默认 "工商注册,刻章,银行卡户,税务报到"
......
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