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
9d5ccd74
Commit
9d5ccd74
authored
Nov 11, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关闭icp订单
parent
508c93e9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
3 deletions
+23
-3
center-channel/app/base/api/impl/opreceive/need.js
+5
-0
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
+17
-3
center-channel/app/config/businessConfig.js
+1
-0
No files found.
center-channel/app/base/api/impl/opreceive/need.js
View file @
9d5ccd74
...
...
@@ -110,6 +110,11 @@ class Need extends APIBase {
case
"icpOrderClose"
:
//关闭ICP订单
opResult
=
await
this
.
utilsNeedSve
.
icpOrderClose
(
pobj
,
pobj
.
actionBody
);
break
;
case
"getSolutionByChannelOrderNo"
:
//根据渠道订单获取方案信息
opResult
=
await
this
.
utilsNeedSve
.
getSolutionByChannelOrderNo
(
pobj
,
pobj
.
actionBody
);
// opResult = await this.utilsNeedSve.getItemByChannelSolutionNo(pobj, pobj.actionBody);
// break;
break
;
//-----------接入百度ICP------end----------------------------------
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
...
...
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
9d5ccd74
...
...
@@ -201,6 +201,19 @@ class UtilsNeedService extends AppServiceBase {
var
itemResult
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
itemResult
;
}
/**
* 获取方案详情
* @param {*} pobj
* @param {*} actionBody bizId 渠道方案号
*/
async
getSolutionByChannelOrderNo
(
pobj
,
actionBody
)
{
if
(
!
actionBody
.
orderNo
)
{
return
system
.
getResult
(
null
,
"actionBody.orderNo can not be empty,100390"
);
}
var
reqUrl
=
this
.
centerOrderUrl
+
"action/need/springBoard"
;
var
itemResult
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
itemResult
;
}
/**
* 关闭需求
* @param {*} pobj
...
...
@@ -1438,15 +1451,16 @@ class UtilsNeedService extends AppServiceBase {
}
//关闭icp订单
async
icpOrderClose
(
pobj
)
{
var
actionBody
=
pobj
;
var
actionBody
=
pobj
.
actionBody
;
var
self
=
this
;
var
url
=
settings
.
centerOrderUrl
()
+
"action/qcapi/springBoard"
;
var
rtn
=
await
this
.
restPostUrl
(
pobj
,
url
);
if
(
rtn
.
status
==
0
&&
rtn
.
data
)
{
pobj
.
actionBody
.
orderNo
=
rtn
.
data
.
orderNo
;
var
orderrtn
=
await
self
.
utilsOrderSve
.
delOrder
(
pobj
,
pobj
);
pobj
.
actionType
=
"delOrder"
;
var
orderrtn
=
await
self
.
utilsOrderSve
.
delOrder
(
pobj
,
actionBody
);
if
(
orderrtn
.
status
<
0
)
{
//
return system.getResultFail(-5022, "订单关闭失败");
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
}
var
tmpObj
=
{
actionBody
:
{
...
...
center-channel/app/config/businessConfig.js
View file @
9d5ccd74
...
...
@@ -19,6 +19,7 @@ module.exports = {
"putUserPwdByMobile"
,
"icpNotifyNew"
],
apiMustUserpinList
:
[
"icpOrderClose"
,
"submitNeed"
,
"paySuccess"
,
"icpNotify"
,
"getLoginInfo"
,
"icpNotifyNew"
,
"submitIcpProgramme"
,
"serviceProviderSubmitMaterial"
,
"abolishIcpProgramme"
,
"submitService"
,
"serviceProviderNotification"
,
"ncServiceSubmitOption"
,
"ncSubmitSolution"
,
"ncCloseNeed"
,
"ncWriteCommunicationRecord"
,
"ncGetCommunicationRecord"
,
"rtServiceSubmitOption"
,
"rtSubmitSolution"
,
...
...
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