Commit d2f2642f by 王栋源

wdy

parent 06997acc
...@@ -112,36 +112,36 @@ class GatewaypushlogService extends ServiceBase { ...@@ -112,36 +112,36 @@ class GatewaypushlogService extends ServiceBase {
async paySuccess(pobj) { async paySuccess(pobj) {
var self = this; var self = this;
if (!pobj.orderNo) { if (!pobj.orderNo) {
return self.getResultFail("orderNo不能为空"); return {"message":"orderNo不能为空","data":{},"code":-200};
} }
if (!pobj.orderPrice) { if (!pobj.orderPrice) {
return self.getResultFail("orderPrice不能为空"); return {"message":"orderPrice不能为空","data":{},"code":-200};
} }
if (!pobj.phone) { if (!pobj.phone) {
return self.getResultFail("phone不能为空"); return {"message":"phone不能为空","data":{},"code":-200};
} }
if (pobj.companyName) { if (pobj.companyName) {
if (!pobj.city) { if (!pobj.city) {
return self.getResultFail("city不能为空"); return {"message":"city不能为空","data":{},"code":-200};
} }
if (!pobj.companyCategory) { if (!pobj.companyCategory) {
return self.getResultFail("companyCategory不能为空"); return {"message":"companyCategory不能为空","data":{},"code":-200};
} }
if (!pobj.orgType) { if (!pobj.orgType) {
return self.getResultFail("orgType不能为空"); return {"message":"orgType不能为空","data":{},"code":-200};
} }
if (!pobj.industryType) { if (!pobj.industryType) {
return self.getResultFail("industryType不能为空"); return {"message":"industryType不能为空","data":{},"code":-200};
} }
if (!pobj.scope) { if (!pobj.scope) {
return self.getResultFail("scope不能为空"); return {"message":"scope不能为空","data":{},"code":-200};
} }
} else if (pobj.park) { } else if (pobj.park) {
if (!pobj.productType) { if (!pobj.productType) {
return self.getResultFail("productType不能为空"); return {"message":"productType不能为空","data":{},"code":-200};
} }
} else { } else {
return self.getResultFail("参数异常"); return {"message":"参数异常","data":{},"code":-200};
} }
var param = { var param = {
requestId: self.getUUID(), requestId: self.getUUID(),
...@@ -153,7 +153,7 @@ class GatewaypushlogService extends ServiceBase { ...@@ -153,7 +153,7 @@ class GatewaypushlogService extends ServiceBase {
pushStatus: "wts",//推送状态 pushStatus: "wts",//推送状态
} }
await this.create(param); await this.create(param);
return self.getResultSuccess(param.requestId); return {"message":"true","data":{},"code":200};
} }
......
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