Commit 14431f35 by 庄冰

需求接口优化

parent 1f8f1e25
......@@ -25,7 +25,6 @@ class NeedinfoService extends ServiceBase {
}
//校验封装参数
async checkAndPackageSubmitParams(ab){
var params={};
if(!ab.submit_type){
return system.getResultFail(-101,"提交方式不能为空!")
}else if(ab.submit_type!="1" && ab.submit_type!="2"){
......@@ -40,8 +39,11 @@ class NeedinfoService extends ServiceBase {
if(!ab.page_name){
return system.getResultFail(-105,"页面名称不能为空!")
}
if(!ab.original_need){
return system.getResultFail(-106,"需求信息不能为空!")
}
if(!ab.contact_mobile){
return system.getResultFail(-106,"联系电话不能为空!")
return system.getResultFail(-107,"联系电话不能为空!")
}
var channel = await this.launchchannelDao.model.findOne({
attributes:["code","name"],
......
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