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
345ef05d
Commit
345ef05d
authored
Dec 22, 2020
by
兰国旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
laolan
parent
be115195
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
16 deletions
+22
-16
center-channel/app/base/service/impl/common/regCenterOrderSve.js
+21
-15
center-channel/app/config/businessConfig.js
+1
-1
No files found.
center-channel/app/base/service/impl/common/regCenterOrderSve.js
View file @
345ef05d
...
...
@@ -402,9 +402,11 @@ async regPaySuccess(pobj) {
console
.
log
(
'bizTypes-----'
,
bizTypes
)
bizTypes
=
JSON
.
parse
(
bizTypes
)
console
.
log
(
'bizTypes++++'
,
bizTypes
)
bizTypes
.
solution
.
serviceArea
=
regCfg
.
baiduAreaCode
[
bizTypes
.
solution
.
serviceArea
]
bizTypes
.
solution
.
area
=
regCfg
.
baiduAreaCode
[
bizTypes
.
solution
.
area
]
bizTypes
.
solution
.
serviceArea
=
bizTypes
.
solution
.
area
var
list
=
{
gsbBizId
:
needsolutions
[
i
].
solutionNo
,
// bizType:"GSREG",
bizType
:
bizTypes
.
bizType
,
solutionContent
:
bizTypes
.
solution
}
...
...
@@ -435,7 +437,7 @@ async regPaySuccess(pobj) {
},
appInfo
:
pobj
.
appInfo
}
await
this
.
utilsPushSve
.
ali
Business2Delivery
(
reqParams
,
"updateChanceStatus"
);
await
this
.
utilsPushSve
.
baidu
Business2Delivery
(
reqParams
,
"updateChanceStatus"
);
}
return
res
;
}
...
...
@@ -447,7 +449,7 @@ async regPaySuccess(pobj) {
var
pushRes
=
await
self
.
baiduRegClient
.
baiduReqbyget
({
path
:
"/v1/provider/demand?submitSolutions="
,
reqbody
:
pushObj
});
console
.
log
(
"pushRes----"
,
pushRes
)
if
(
pushRes
&&
pushRes
.
status
==
0
&&
pushRes
.
data
)
{
var
resData
=
pushRes
.
data
;
var
resData
=
pushRes
.
data
.
data
;
if
(
resData
.
infos
)
{
var
reqObj2
=
{
actionType
:
"saveReginfo"
,
...
...
@@ -470,7 +472,10 @@ async regPaySuccess(pobj) {
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
console
.
log
(
'regNeedClose+++result'
,
result
)
var
i
;
var
len
=
result
.
data
.
length
var
len
;
if
(
result
&&
result
.
data
){
len
=
result
.
data
.
length
}
var
orders
=
[]
if
(
result
.
status
==
0
)
{
for
(
i
=
0
;
i
<
len
;
i
++
){
...
...
@@ -486,13 +491,13 @@ async regPaySuccess(pobj) {
//推送交付系统
var
reqParams
=
{
actionBody
:
{
intentionBizId
:
pobj
.
actionBody
.
n
eedNo
,
intentionBizId
:
pobj
.
actionBody
.
channelN
eedNo
,
status
:
"closeNeed"
},
opType
:
"updateChanceStatus"
,
appInfo
:
pobj
.
appInfo
}
this
.
utilsPushSve
.
ali
Business2Delivery
(
reqParams
,
"updateChanceStatus"
);
this
.
utilsPushSve
.
baidu
Business2Delivery
(
reqParams
,
"updateChanceStatus"
);
//日志记录
this
.
logCtl
.
info
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
...
...
@@ -504,12 +509,13 @@ async regPaySuccess(pobj) {
optitle
:
"updateChanceStatus推送蜂擎获取的接口信息->aliBusiness2Delivery"
,
});
var
pushObj
=
{
IntentionBizId
:
pobj
.
actionBody
.
n
eedNo
,
N
ote
:
pobj
.
actionBody
.
note
intentionBizId
:
pobj
.
actionBody
.
channelN
eedNo
,
n
ote
:
pobj
.
actionBody
.
note
}
console
.
log
(
'pushObj----/////'
,
pushObj
)
// 推送baidu
var
a
=
await
this
.
baiduRegClient
.
baiduReqbyget
({
path
:
"/v1/provider/demand?close="
,
pushObj
});
console
.
log
(
'regNeedClose+++'
,
a
)
var
a
=
await
this
.
baiduRegClient
.
baiduReqbyget
({
path
:
"/v1/provider/demand?close="
,
reqbody
:
pushObj
});
console
.
log
(
'regNeedClose+++
a----
'
,
a
)
//查看日志
this
.
logCtl
.
info
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
...
...
@@ -520,7 +526,7 @@ async regPaySuccess(pobj) {
resultInfo
:
""
,
optitle
:
"推送baidu-reg关闭需求->closeNeed"
,
});
this
.
utilsPushSve
.
ali
Business2Fq
(
pobj
,
"pushCloseICPNeed"
);
this
.
utilsPushSve
.
baidu
Business2Fq
(
pobj
,
"pushCloseICPNeed"
);
}
return
result
;
...
...
@@ -568,12 +574,12 @@ async regPaySuccess(pobj) {
var
pushObj
=
{}
if
(
result
&&
result
.
status
==
0
&&
result
.
data
)
{
pushObj
=
{
requirement
Id
:
pobj
.
actionBody
.
intentionBizId
,
intentionBiz
Id
:
pobj
.
actionBody
.
intentionBizId
,
note
:
pobj
.
actionBody
.
note
}
if
(
result
.
data
==
regCfg
.
uappId
.
baidu
)
{
var
ress
=
await
self
.
baiduRegClient
.
baiduReqbyget
({
path
:
"/v1/provider/demand?addCommRecord="
,
reqbody
:
pushObj
});
console
.
log
(
"
baidu+res
"
,
ress
)
console
.
log
(
"
regWriteCommunicationLog---------
"
,
ress
)
}
}
...
...
@@ -586,7 +592,7 @@ async regPaySuccess(pobj) {
opType
:
"updateChanceStatus"
,
appInfo
:
pobj
.
appInfo
}
self
.
utilsPushSve
.
ali
Business2Delivery
(
reqParams
,
"updateChanceStatus"
);
self
.
utilsPushSve
.
baidu
Business2Delivery
(
reqParams
,
"updateChanceStatus"
);
var
fqobj
=
{
actionBody
:
{
"bizId"
:
pobj
.
actionBody
.
intentionBizId
,
...
...
@@ -596,7 +602,7 @@ async regPaySuccess(pobj) {
opType
:
"aliFollowup"
,
appInfo
:
pobj
.
appInfo
}
self
.
utilsPushSve
.
ali
Business2Fq
(
fqobj
,
"aliFollowup"
);
self
.
utilsPushSve
.
baidu
Business2Fq
(
fqobj
,
"aliFollowup"
);
return
system
.
getResultSuccess
();
}
...
...
center-channel/app/config/businessConfig.js
View file @
345ef05d
...
...
@@ -19,7 +19,7 @@ module.exports = {
"getParamsFor360"
,
"addOrderWeb"
,
"getPayRecords"
,
"getLoginInfo"
,
"putUserMobileByVcode"
,
"putUserPwdByMobile"
,
"icpNotifyNew"
,
//百度工商注册
"
submitRegSolution"
,
"writeRegCommunicationLog"
,
"queryExpertRegCommunicationLogs"
,
"updateOrdertatus"
,
"closeBdRegNeed
"
"
regSubmitSolution"
,
"regWriteCommunicationLog"
,
"regQueryExpertCommunicationLogs"
,
"regUpdateOrderStatus"
,
"regNeedClose"
,
"regGetInfoByChannelNeedNo
"
],
apiMustUserpinList
:
[
"icpOrderClose"
,
...
...
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