Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
97d6c52e
Commit
97d6c52e
authored
May 06, 2021
by
宋毅
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel
parents
97c56437
5040f82b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
2 deletions
+27
-2
center-channel/app/base/api/impl/auth/accessAuth.js
+6
-0
center-channel/app/base/api/impl/ic/consultation.js
+2
-2
center-channel/app/base/service/impl/utilsSve/utilsAuthSve.js
+19
-0
No files found.
center-channel/app/base/api/impl/auth/accessAuth.js
View file @
97d6c52e
...
@@ -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
;
...
...
center-channel/app/base/api/impl/ic/consultation.js
View file @
97d6c52e
...
@@ -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
(
"
mobil
e不能为空"
);
return
regCfg
.
getResultFail
(
"
phon
e不能为空"
);
}
}
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
]
...
...
center-channel/app/base/service/impl/utilsSve/utilsAuthSve.js
View file @
97d6c52e
...
@@ -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
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment