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
0306dd7e
Commit
0306dd7e
authored
Dec 23, 2020
by
兰国旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
laolan
parent
2826fff3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
24 deletions
+25
-24
center-channel/app/base/api/impl/action/regapi.js
+1
-2
center-channel/app/base/service/impl/common/regCenterOrderSve.js
+24
-22
No files found.
center-channel/app/base/api/impl/action/regapi.js
View file @
0306dd7e
...
...
@@ -29,8 +29,7 @@ class RegAPI extends APIBase {
opResult
=
await
this
.
regCenterOrderSve
.
submitRegNeed
(
pobj
,
pobj
.
actionBody
);
break
;
case
"regFeedbackSubmit"
:
//接收方案反馈信息
pobj
.
actionType
=
"regFeedbackSubmit"
;
opResult
=
await
this
.
regCenterOrderSve
.
reqCenterOrderRegApi
(
pobj
);
opResult
=
await
this
.
regCenterOrderSve
.
regFeedbackSubmit
(
pobj
);
break
;
case
"regOrderStatus"
:
//reg方案更新
opResult
=
await
this
.
regCenterOrderSve
.
regOrderStatus
(
pobj
,
pobj
.
actionBody
);
...
...
center-channel/app/base/service/impl/common/regCenterOrderSve.js
View file @
0306dd7e
...
...
@@ -26,28 +26,7 @@ class RegCenterOrderService extends AppServiceBase {
var
data
=
JSON
.
parse
(
rtn
.
stdout
);
return
data
;
}
//调用center-order reg需求反馈 2.2
async
reqCenterOrderRegApi
(
pobj
,
reqUrl
)
{
var
url
=
this
.
centerOrderUrl
+
"action/regapi/springBoard"
;
if
(
reqUrl
)
{
var
url
=
this
.
centerOrderUrl
+
reqUrl
;
}
var
self
=
this
;
pobj
.
actionType
=
"regFeedbackSubmit"
;
if
(
pobj
.
actionBody
&&
pobj
.
actionBody
.
intentionStatus
)
{
pobj
.
intentionStatus
=
pobj
.
actionBody
.
intentionStatus
;
}
var
rtn
=
await
this
.
execClient
.
execPost
(
pobj
,
url
);
if
(
pobj
.
intentionStatus
)
{
// 如果需求当前字段为5(已关闭)则通知fq
if
(
pobj
.
intentionStatus
==
5
)
{
self
.
utilsPushSve
.
baiduBusiness2Fq
(
pobj
,
"pushCloseICPNeed"
);
}
}
var
data
=
JSON
.
parse
(
rtn
.
stdout
);
return
data
;
}
//-----------接入百度reg-----start--------laolan---2020.12.17----------------------
async
regPaySuccess
(
pobj
)
{
...
...
@@ -262,6 +241,29 @@ async regPaySuccess(pobj) {
}
return
result
;
}
//reg需求反馈 2.2
async
regFeedbackSubmit
(
pobj
,
reqUrl
)
{
var
url
=
this
.
centerOrderUrl
+
"action/regapi/springBoard"
;
if
(
reqUrl
)
{
var
url
=
this
.
centerOrderUrl
+
reqUrl
;
}
var
self
=
this
;
pobj
.
actionType
=
"regFeedbackSubmit"
;
if
(
pobj
.
actionBody
&&
pobj
.
actionBody
.
intentionStatus
)
{
pobj
.
intentionStatus
=
pobj
.
actionBody
.
intentionStatus
;
}
var
rtn
=
await
this
.
execClient
.
execPost
(
pobj
,
url
);
if
(
pobj
.
intentionStatus
)
{
// 如果需求当前字段为5(已关闭)则通知fq
if
(
pobj
.
intentionStatus
==
5
)
{
self
.
utilsPushSve
.
baiduBusiness2Fq
(
pobj
,
"pushCloseICPNeed"
);
}
}
var
data
=
JSON
.
parse
(
rtn
.
stdout
);
return
data
;
}
//状态更新
async
regOrderStatus
(
pobj
)
{
var
actionBody
=
pobj
.
actionBody
;
...
...
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