Commit 97d6c52e by 宋毅

Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel

parents 97c56437 5040f82b
...@@ -118,6 +118,12 @@ class AccessAuthAPI extends WEBBase { ...@@ -118,6 +118,12 @@ class AccessAuthAPI extends WEBBase {
case "getAllService"://获取所有渠道(信息更全一些) case "getAllService"://获取所有渠道(信息更全一些)
opResult = await this.utilsAuthSve.getAllService(pobj); opResult = await this.utilsAuthSve.getAllService(pobj);
break; break;
case "submitService"://创建渠道(app)
opResult = await this.utilsAuthSve.submitService(pobj);
break;
case "editService"://创建渠道(app)
opResult = await this.utilsAuthSve.editService(pobj);
break;
default: default:
opResult = system.getResult(null, "action_type参数错误"); opResult = system.getResult(null, "action_type参数错误");
break; break;
......
...@@ -17,13 +17,13 @@ class Consultation extends APIBase { ...@@ -17,13 +17,13 @@ class Consultation extends APIBase {
return regCfg.getResultFail("intentionBizId不能为空"); return regCfg.getResultFail("intentionBizId不能为空");
} }
if (!pobj.phone) { if (!pobj.phone) {
return regCfg.getResultFail("mobile不能为空"); return regCfg.getResultFail("phone不能为空");
} }
if (!pobj.consultType) { if (!pobj.consultType) {
return regCfg.getResultFail("consultType不能为空"); return regCfg.getResultFail("consultType不能为空");
} }
pobj.type = pobj.consultType; pobj.type = pobj.consultType;
pobj.mobile = pobj.phone; // pobj.mobile = pobj.phone;//百度公司注册提交需求根据geteway中regCenterOrderSve文件reqcenterchannel2方法判断隐藏mobile字段
pobj.action_type = "submitRegNeed"; pobj.action_type = "submitRegNeed";
if (pobj.area) { if (pobj.area) {
pobj.area = regCfg.baiduArea[pobj.area] pobj.area = regCfg.baiduArea[pobj.area]
......
...@@ -313,5 +313,24 @@ class UtilsAuthService extends AppServiceBase { ...@@ -313,5 +313,24 @@ class UtilsAuthService extends AppServiceBase {
return result return result
} }
/**
* 创建渠道(信息更全一些)
* @returns {Promise<void>}
*/
async submitService(pobj) {
let url = this.centerAppUrl + 'auth/accessAuth/submitService';
let result = await this.restPostUrl(pobj, url);
return result
}
/**
* 修改渠道(信息更全一些)
* @returns {Promise<void>}
*/
async editService(pobj) {
let url = this.centerAppUrl + 'auth/accessAuth/editService';
let result = await this.restPostUrl(pobj, url);
return result
}
} }
module.exports = UtilsAuthService; module.exports = UtilsAuthService;
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