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
8958cc56
Commit
8958cc56
authored
Nov 17, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
icpqueue
parent
85924600
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
2 deletions
+40
-2
center-channel/app/base/api/impl/icp/queueNotify.js
+38
-0
center-channel/app/base/service/impl/utilsSve/utilsChannelPartnerSve.js
+1
-1
center-channel/app/config/businessConfig.js
+1
-1
No files found.
center-channel/app/base/api/impl/icp/queueNotify.js
0 → 100644
View file @
8958cc56
var
APIBase
=
require
(
"../../api.base"
);
var
system
=
require
(
"../../../system"
);
var
settings
=
require
(
"../../../../config/settings"
);
class
QueueNotify
extends
APIBase
{
constructor
()
{
super
();
this
.
baseOrderSve
=
system
.
getObject
(
"service.common.baseCenterOrderSve"
);
}
/**
* 接口跳转-POST请求
* action_process 执行的流程
* action_type 执行的类型
* action_body 执行的参数
*/
async
springBoard
(
pobj
,
qobj
,
req
)
{
if
(
!
pobj
.
actionType
)
{
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
}
var
result
=
await
this
.
opActionProcess
(
pobj
,
pobj
.
actionType
,
req
);
return
result
;
}
async
opActionProcess
(
pobj
,
action_type
,
req
)
{
var
opResult
=
null
;
switch
(
action_type
)
{
// --------- 推送icp信息至渠道和作方 zhuangbing-20201116--------
case
"pushIcpSolution2Channel"
:
//推送ICP方案至渠道(百度)
opResult
=
await
this
.
baseOrderSve
.
pushIcpSolution2Channel
(
pobj
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
}
return
opResult
;
}
}
module
.
exports
=
QueueNotify
;
\ No newline at end of file
center-channel/app/base/service/impl/utilsSve/utilsChannelPartnerSve.js
View file @
8958cc56
...
...
@@ -78,7 +78,7 @@ class UtilsChannelPartnerService extends AppServiceBase {
if
(
!
pobj
||
!
pobj
.
appInfo
||
!
pobj
.
appInfo
.
app_code
){
verify
=
system
.
getResult
(
null
,
"appInfo can not be empty,100450"
);
}
var
signRes
=
await
this
.
signSve
.
createSign
(
pobj
.
actionBody
,
pobj
.
appInfo
.
uapp_secret
);
var
signRes
=
await
this
.
signSve
.
createSign
(
{
actionBody
:
pobj
.
actionBody
,
actionType
:
interface_params_info
.
actionType
}
,
pobj
.
appInfo
.
uapp_secret
);
if
(
signRes
&&
signRes
.
status
==
0
){
verify
.
sign
=
signRes
.
data
;
}
else
{
...
...
center-channel/app/config/businessConfig.js
View file @
8958cc56
...
...
@@ -26,6 +26,6 @@ module.exports = {
"ncGetNeedList"
,
"ncSubmitMaterial"
,
"ncNotification"
,
"ncSubmitSolution"
,
"ncWriteCommunicationRecord"
,
"ncGetCommunicationRecord"
,
"ncCloseNeed"
,
"ncClosePlan"
,
"ncCloseOrderDelivery"
,
"rtGetNeedList"
,
"rtSubmitMaterial"
,
"rtNotification"
,
"rtSubmitSolution"
,
"rtWriteCommunicationRecord"
,
"rtGetCommunicationRecord"
,
"rtCloseNeed"
,
"rtClosePlan"
,
"rtCloseOrderDelivery"
,
],
apiSecretPathList
:
[
"/api/icp/consultation/submit"
,
"/api/icp/feedback/submit"
,
"/api/icp/order/notify"
,
"/api/opreceive/service/create"
,
"/api/icp/order/close"
,
"/api/opreceive/service/notify"
]
apiSecretPathList
:
[
"/api/icp/consultation/submit"
,
"/api/icp/feedback/submit"
,
"/api/icp/order/notify"
,
"/api/opreceive/service/create"
,
"/api/icp/order/close"
,
"/api/opreceive/service/notify"
,
"/api/icp/queueNotify/springBoard"
,
]
}
}
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