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
61d38797
Commit
61d38797
authored
Dec 24, 2020
by
兰国旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
laolan
parent
46f55ec0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
center-channel/app/base/service/impl/common/regCenterOrderSve.js
+16
-4
center-channel/app/config/businessConfig.js
+4
-2
No files found.
center-channel/app/base/service/impl/common/regCenterOrderSve.js
View file @
61d38797
...
@@ -29,6 +29,14 @@ class RegCenterOrderService extends AppServiceBase {
...
@@ -29,6 +29,14 @@ class RegCenterOrderService extends AppServiceBase {
//-----------接入百度reg-----start--------laolan---2020.12.17----------------------
//-----------接入百度reg-----start--------laolan---2020.12.17----------------------
async
getSolutionByChannelOrderNo
(
pobj
,
actionBody
)
{
if
(
!
actionBody
.
orderNo
)
{
return
system
.
getResult
(
null
,
"actionBody.orderNo can not be empty,100390"
);
}
var
reqUrl
=
this
.
centerOrderUrl
+
"action/regapi/springBoard"
;
var
itemResult
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
itemResult
;
}
async
regPaySuccess
(
pobj
)
{
async
regPaySuccess
(
pobj
)
{
console
.
log
(
'regPaySuccess++++pobj----'
,
pobj
)
console
.
log
(
'regPaySuccess++++pobj----'
,
pobj
)
var
sobj
=
{
var
sobj
=
{
...
@@ -52,6 +60,7 @@ async regPaySuccess(pobj) {
...
@@ -52,6 +60,7 @@ async regPaySuccess(pobj) {
if
(
data
.
status
!=
0
)
{
if
(
data
.
status
!=
0
)
{
return
system
.
getResultFail
(
-
5010
,
"产品查询失败"
);
return
system
.
getResultFail
(
-
5010
,
"产品查询失败"
);
}
}
console
.
log
(
'data----data----'
,
data
)
// pobj.actionBody = data.data;
// pobj.actionBody = data.data;
// pobj.actionBody.orderNo = pobj.actionBody.bizId;
// pobj.actionBody.orderNo = pobj.actionBody.bizId;
pobj
.
actionBody
.
totalSum
=
data
.
data
.
price
;
pobj
.
actionBody
.
totalSum
=
data
.
data
.
price
;
...
@@ -59,7 +68,7 @@ async regPaySuccess(pobj) {
...
@@ -59,7 +68,7 @@ async regPaySuccess(pobj) {
pobj
.
actionBody
.
payTotalSum
=
data
.
data
.
price
;
pobj
.
actionBody
.
payTotalSum
=
data
.
data
.
price
;
pobj
.
actionBody
.
payCode
=
data
.
data
.
payCode
;
pobj
.
actionBody
.
payCode
=
data
.
data
.
payCode
;
pobj
.
actionBody
.
channelItemCode
=
data
.
data
.
channelItemCode
;
pobj
.
actionBody
.
channelItemCode
=
data
.
data
.
channelItemCode
;
pobj
.
actionBody
.
channelNeedNo
=
data
.
data
.
channelNeedNo
;
pobj
.
actionBody
.
channelNeedNo
=
data
.
data
.
channelNeedNo
||
data
.
data
.
bizId
;
pobj
.
actionBody
.
needNo
=
data
.
data
.
needNo
;
pobj
.
actionBody
.
needNo
=
data
.
data
.
needNo
;
pobj
.
actionBody
.
quantity
=
1
;
pobj
.
actionBody
.
quantity
=
1
;
pobj
.
actionBody
.
channelOrder
=
{
pobj
.
actionBody
.
channelOrder
=
{
...
@@ -67,7 +76,10 @@ async regPaySuccess(pobj) {
...
@@ -67,7 +76,10 @@ async regPaySuccess(pobj) {
channelOrderNo
:
pobj
.
actionBody
.
orderNo
,
channelOrderNo
:
pobj
.
actionBody
.
orderNo
,
orderStatus
:
2
orderStatus
:
2
}
}
console
.
log
(
'pobj.actionBody------'
,
pobj
.
actionBody
)
var
orderrtn
=
await
this
.
utilsOrderSve
.
addOrder
(
pobj
,
pobj
.
actionBody
);
var
orderrtn
=
await
this
.
utilsOrderSve
.
addOrder
(
pobj
,
pobj
.
actionBody
);
console
.
log
(
'orderrtn----'
,
orderrtn
)
if
(
orderrtn
.
status
!=
0
&&
orderrtn
.
status
!=
-
1
)
{
if
(
orderrtn
.
status
!=
0
&&
orderrtn
.
status
!=
-
1
)
{
return
system
.
getResultFail
(
-
5012
,
"订单创建失败"
);
return
system
.
getResultFail
(
-
5012
,
"订单创建失败"
);
}
}
...
@@ -77,7 +89,7 @@ async regPaySuccess(pobj) {
...
@@ -77,7 +89,7 @@ async regPaySuccess(pobj) {
pobj
.
actionBody
.
channelSolutionNo
=
pobj
.
actionBody
.
bizId
;
pobj
.
actionBody
.
channelSolutionNo
=
pobj
.
actionBody
.
bizId
;
pobj
.
actionType
=
"regReceiveSolutionPayInfo"
;
pobj
.
actionType
=
"regReceiveSolutionPayInfo"
;
var
url
=
settings
.
centerOrderUrl
()
+
"action/reg
CenterOrder
/springBoard"
;
var
url
=
settings
.
centerOrderUrl
()
+
"action/reg
api
/springBoard"
;
var
solutionrtn
=
await
this
.
execClient
.
execPost
(
pobj
,
url
);
var
solutionrtn
=
await
this
.
execClient
.
execPost
(
pobj
,
url
);
if
(
!
solutionrtn
||
!
solutionrtn
.
stdout
)
{
if
(
!
solutionrtn
||
!
solutionrtn
.
stdout
)
{
return
system
.
getResultFail
(
-
5011
,
"方案查询失败"
);
return
system
.
getResultFail
(
-
5011
,
"方案查询失败"
);
...
@@ -135,7 +147,7 @@ async regPaySuccess(pobj) {
...
@@ -135,7 +147,7 @@ async regPaySuccess(pobj) {
actionType
:
"addRegSalesmanInfo"
,
//添加业务员信息
actionType
:
"addRegSalesmanInfo"
,
//添加业务员信息
actionBody
:{
salesmanInfo
:
salesmanInfo
,
orderNo
:
orderrtn
.
data
.
orderNo
}
actionBody
:{
salesmanInfo
:
salesmanInfo
,
orderNo
:
orderrtn
.
data
.
orderNo
}
};
};
var
url
=
settings
.
centerOrderUrl
()
+
"action/reg
CenterOrder
/springBoard"
;
var
url
=
settings
.
centerOrderUrl
()
+
"action/reg
api
/springBoard"
;
var
addRes
=
await
this
.
execClient
.
execPost
(
salesmanObj
,
url
);
var
addRes
=
await
this
.
execClient
.
execPost
(
salesmanObj
,
url
);
if
(
addRes
&&
addRes
.
stdout
)
{
if
(
addRes
&&
addRes
.
stdout
)
{
var
salesmanRes
=
JSON
.
parse
(
addRes
.
stdout
);
var
salesmanRes
=
JSON
.
parse
(
addRes
.
stdout
);
...
@@ -370,7 +382,7 @@ async regFeedbackSubmit(pobj, reqUrl) {
...
@@ -370,7 +382,7 @@ async regFeedbackSubmit(pobj, reqUrl) {
//通知交付状态变更
//通知交付状态变更
// async serviceProviderNotification(pobj) {
// async serviceProviderNotification(pobj) {
// console.log('zhuangtai ++++',pobj)
// console.log('zhuangtai ++++',pobj)
// var res = await this.reqCenterOrderApi(pobj, "action/reg
CenterOrder
/springBoard");
// var res = await this.reqCenterOrderApi(pobj, "action/reg
api
/springBoard");
// if (res && res.status == 0 && res.data) {
// if (res && res.status == 0 && res.data) {
// if(res.data.uapp_id == regCfg.uappId.baidu){
// if(res.data.uapp_id == regCfg.uappId.baidu){
// res.data.ApplicationStatus = baiduRegStatus[res.data.ApplicationStatus];
// res.data.ApplicationStatus = baiduRegStatus[res.data.ApplicationStatus];
...
...
center-channel/app/config/businessConfig.js
View file @
61d38797
...
@@ -19,7 +19,8 @@ module.exports = {
...
@@ -19,7 +19,8 @@ module.exports = {
"getParamsFor360"
,
"addOrderWeb"
,
"getPayRecords"
,
"getLoginInfo"
,
"putUserMobileByVcode"
,
"getParamsFor360"
,
"addOrderWeb"
,
"getPayRecords"
,
"getLoginInfo"
,
"putUserMobileByVcode"
,
"putUserPwdByMobile"
,
"icpNotifyNew"
,
"putUserPwdByMobile"
,
"icpNotifyNew"
,
//百度工商注册
//百度工商注册
"regSubmitSolution"
,
"regWriteCommunicationLog"
,
"regQueryExpertCommunicationLogs"
,
"regUpdateOrderStatus"
,
"regNeedClose"
,
"regGetInfoByChannelNeedNo"
"regGetInfoByChannelNeedNo"
,
"submitRegNeed"
,
"regFeedbackSubmit"
,
"regOrderStatus"
,
"regOrderClose"
,
"getSolutionByChannelOrderNo"
,
"regSubmitSolution"
,
"regWriteCommunicationLog"
,
"regQueryExpertCommunicationLogs"
,
"regUpdateOrderStatus"
,
"regNeedClose"
,
"regPaySuccess"
],
],
apiMustUserpinList
:
[
apiMustUserpinList
:
[
"icpOrderClose"
,
"icpOrderClose"
,
...
@@ -28,7 +29,8 @@ module.exports = {
...
@@ -28,7 +29,8 @@ module.exports = {
"ncSubmitMaterial"
,
"ncNotification"
,
"ncSubmitSolution"
,
"ncCloseNeed"
,
"ncClosePlan"
,
"ncSubmitMaterial"
,
"ncNotification"
,
"ncSubmitSolution"
,
"ncCloseNeed"
,
"ncClosePlan"
,
"rtSubmitMaterial"
,
"rtNotification"
,
"rtSubmitSolution"
,
"rtCloseNeed"
,
"rtClosePlan"
,
"rtSubmitMaterial"
,
"rtNotification"
,
"rtSubmitSolution"
,
"rtCloseNeed"
,
"rtClosePlan"
,
//百度工商注册
//百度工商注册
"regSubmitSolution"
,
"regWriteCommunicationLog"
,
"regQueryExpertCommunicationLogs"
,
"regUpdateOrderStatus"
,
"regNeedClose"
,
"regGetInfoByChannelNeedNo"
"regGetInfoByChannelNeedNo"
,
"submitRegNeed"
,
"regFeedbackSubmit"
,
"regOrderStatus"
,
"regOrderClose"
,
"getSolutionByChannelOrderNo"
,
"regSubmitSolution"
,
"regWriteCommunicationLog"
,
"regQueryExpertCommunicationLogs"
,
"regUpdateOrderStatus"
,
"regNeedClose"
,
"regPaySuccess"
],
],
apiSecretPathList
:
[
apiSecretPathList
:
[
"/api/icp/consultation/submit"
,
"/api/icp/consultation/submit"
,
...
...
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