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
bc58b23c
Commit
bc58b23c
authored
Dec 26, 2020
by
兰国旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
laolan
parent
87acf19e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
12 deletions
+24
-12
center-channel/app/base/api/impl/action/regapi.js
+3
-0
center-channel/app/base/service/impl/common/regCenterOrderSve.js
+21
-12
No files found.
center-channel/app/base/api/impl/action/regapi.js
View file @
bc58b23c
...
@@ -25,6 +25,9 @@ class RegAPI extends APIBase {
...
@@ -25,6 +25,9 @@ class RegAPI extends APIBase {
switch
(
action_type
)
{
switch
(
action_type
)
{
//-----------接入百度reg------start----laolan--2020.12.17----------------------------
//-----------接入百度reg------start----laolan--2020.12.17----------------------------
//---------2.
//---------2.
case
"selectNeedInfo"
:
//查询需求信息
opResult
=
await
this
.
regCenterOrderSve
.
selectNeedInfo
(
pobj
,
pobj
.
actionBody
);
break
;
case
"submitRegNeed"
:
//提交需求
case
"submitRegNeed"
:
//提交需求
opResult
=
await
this
.
regCenterOrderSve
.
submitRegNeed
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
regCenterOrderSve
.
submitRegNeed
(
pobj
,
pobj
.
actionBody
);
break
;
break
;
...
...
center-channel/app/base/service/impl/common/regCenterOrderSve.js
View file @
bc58b23c
...
@@ -28,21 +28,21 @@ class RegCenterOrderService extends AppServiceBase {
...
@@ -28,21 +28,21 @@ class RegCenterOrderService extends AppServiceBase {
}
}
//-----------接入百度reg-----start--------laolan---2020.12.17----------------------
//-----------接入百度reg-----start--------laolan---2020.12.17----------------------
async
getSolutionByChannelOrderNo
(
pobj
,
actionBody
)
{
async
getSolutionByChannelOrderNo
(
pobj
,
actionBody
)
{
if
(
!
actionBody
.
orderNo
)
{
if
(
!
actionBody
.
orderNo
)
{
return
system
.
getResult
(
null
,
"actionBody.orderNo can not be empty,100390"
);
return
system
.
getResult
(
null
,
"actionBody.orderNo can not be empty,100390"
);
}
}
var
reqUrl
=
this
.
centerOrderUrl
+
"action/regapi/springBoard"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/regapi/springBoard"
;
var
itemResult
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
itemResult
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
itemResult
;
return
itemResult
;
}
}
async
regPaySuccess
(
pobj
)
{
async
regPaySuccess
(
pobj
)
{
console
.
log
(
'regPaySuccess++++pobj----'
,
pobj
)
console
.
log
(
'regPaySuccess++++pobj----'
,
pobj
)
var
sobj
=
{
var
sobj
=
{
actionType
:
"getRegProducePrice"
,
actionType
:
"getRegProducePrice"
,
actionBody
:
{
actionBody
:
{
typeCode
:
pobj
.
actionBody
.
channelTypeCod
e
,
typeCode
:
pobj
.
actionBody
.
consultTyp
e
,
city
:
pobj
.
actionBody
.
area
,
city
:
pobj
.
actionBody
.
area
,
taxpayerType
:
pobj
.
actionBody
.
taxpayerType
,
taxpayerType
:
pobj
.
actionBody
.
taxpayerType
,
companyProperties
:
pobj
.
actionBody
.
companyProperties
companyProperties
:
pobj
.
actionBody
.
companyProperties
...
@@ -165,7 +165,14 @@ async regPaySuccess(pobj) {
...
@@ -165,7 +165,14 @@ async regPaySuccess(pobj) {
this
.
utilsPushSve
.
baiduBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
this
.
utilsPushSve
.
baiduBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
}
}
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
}
// channelNeedNo获取需求详情
async
selectNeedInfo
(
pobj
){
var
reqUrl
=
this
.
centerOrderUrl
+
"action/regapi/springBoard"
;
var
itemResult
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
itemResult
;
}
/**
/**
* 获取方案详情
* 获取方案详情
* @param {*} pobj
* @param {*} pobj
...
@@ -185,10 +192,7 @@ async regPaySuccess(pobj) {
...
@@ -185,10 +192,7 @@ async regPaySuccess(pobj) {
* @param {*} pobj
* @param {*} pobj
* @param {*} actionBody bizId 渠道方案号
* @param {*} actionBody bizId 渠道方案号
*/
*/
async
getItemByChannelSolutionNo
(
pobj
,
actionBody
)
{
async
getItemByChannelSolutionNo
(
pobj
)
{
if
(
!
actionBody
.
bizId
)
{
return
system
.
getResult
(
null
,
"actionBody.bizId can not be empty,100390"
);
}
var
reqUrl
=
this
.
centerOrderUrl
+
"action/regapi/springBoard"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/regapi/springBoard"
;
var
itemResult
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
itemResult
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
itemResult
;
return
itemResult
;
...
@@ -256,7 +260,7 @@ async regPaySuccess(pobj) {
...
@@ -256,7 +260,7 @@ async regPaySuccess(pobj) {
}
}
//reg需求反馈 2.2
//reg需求反馈 2.2
async
regFeedbackSubmit
(
pobj
,
reqUrl
)
{
async
regFeedbackSubmit
(
pobj
,
reqUrl
)
{
var
url
=
this
.
centerOrderUrl
+
"action/regapi/springBoard"
;
var
url
=
this
.
centerOrderUrl
+
"action/regapi/springBoard"
;
if
(
reqUrl
)
{
if
(
reqUrl
)
{
var
url
=
this
.
centerOrderUrl
+
reqUrl
;
var
url
=
this
.
centerOrderUrl
+
reqUrl
;
...
@@ -276,7 +280,7 @@ async regFeedbackSubmit(pobj, reqUrl) {
...
@@ -276,7 +280,7 @@ async regFeedbackSubmit(pobj, reqUrl) {
}
}
var
data
=
JSON
.
parse
(
rtn
.
stdout
);
var
data
=
JSON
.
parse
(
rtn
.
stdout
);
return
data
;
return
data
;
}
}
//状态更新
//状态更新
async
regOrderStatus
(
pobj
)
{
async
regOrderStatus
(
pobj
)
{
var
actionBody
=
pobj
.
actionBody
;
var
actionBody
=
pobj
.
actionBody
;
...
@@ -533,12 +537,17 @@ async regFeedbackSubmit(pobj, reqUrl) {
...
@@ -533,12 +537,17 @@ async regFeedbackSubmit(pobj, reqUrl) {
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
var
deliverContent
var
deliverContent
if
(
pobj
.
actionBody
.
deliverContent
){
if
(
pobj
.
actionBody
.
deliverContent
){
if
(
pobj
.
actionBody
.
deliverContent
.
companyInfo
&&
pobj
.
actionBody
.
deliverContent
.
companyInfo
.
serviceArea
){
pobj
.
actionBody
.
deliverContent
.
companyInfo
.
serviceArea
=
regCfg
.
baiduAreaCode
[
pobj
.
actionBody
.
deliverContent
.
companyInfo
.
serviceArea
]
}
deliverContent
=
{
deliverContent
=
{
applicationFormUrl
:
pobj
.
actionBody
.
deliverContent
.
applicationFormUrl
||
""
,
//公司注册申请登记表文件
applicationFormUrl
:
pobj
.
actionBody
.
deliverContent
.
applicationFormUrl
||
""
,
//公司注册申请登记表文件
registDocumentsUrl
:
pobj
.
actionBody
.
deliverContent
.
registDocumentsUrl
||
""
,
//注册文件
registDocumentsUrl
:
pobj
.
actionBody
.
deliverContent
.
registDocumentsUrl
||
""
,
//注册文件
baseInfo
:
pobj
.
actionBody
.
deliverContent
.
baseInfo
||
{},
//基本信息
baseInfo
:
pobj
.
actionBody
.
deliverContent
.
baseInfo
||
{},
//基本信息
companyInfo
:
pobj
.
actionBody
.
deliverContent
.
companyInfo
||
{}
//公司信息
companyInfo
:
pobj
.
actionBody
.
deliverContent
.
companyInfo
||
{}
//公司信息
}
}
}
else
{
deliverContent
=
{}
}
}
if
(
res
.
data
.
uapp_id
==
regCfg
.
uappId
.
baidu
){
if
(
res
.
data
.
uapp_id
==
regCfg
.
uappId
.
baidu
){
//推送数据至百度
//推送数据至百度
...
...
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