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
d2b4c9df
Commit
d2b4c9df
authored
Aug 06, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
submitNeed push / submitIcpProgramme push
parent
e1e70f48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
center-channel/app/base/service/impl/common/qcCenterOrderSve.js
+17
-0
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
+17
-0
No files found.
center-channel/app/base/service/impl/common/qcCenterOrderSve.js
View file @
d2b4c9df
...
...
@@ -15,6 +15,7 @@ class QcCenterOrderService extends AppServiceBase {
this
.
utilsOrderSve
=
system
.
getObject
(
"service.utilsSve.utilsOrderSve"
);
this
.
utilsPushSve
=
system
.
getObject
(
"service.utilsSve.utilsPushSve"
);
this
.
utilsTmAliyunSve
=
system
.
getObject
(
"service.utilsSve.utilsTmAliyunSve"
);
//测试用
this
.
opPushQueueUrl
=
settings
.
opPushQueueUrl
();
};
//调用center-order
async
reqCenterOrderApi
(
pobj
,
reqUrl
)
{
...
...
@@ -54,6 +55,22 @@ class QcCenterOrderService extends AppServiceBase {
var
self
=
this
;
//推送方案
await
this
.
pushIcpSolution
(
pushObj
,
needsolution
.
solutionNo
,
pobj
.
appInfo
,
self
);
// 2020 0806 lin 新增推送
var
reqParams
=
{
actionType
:
"produceData"
,
// Y 功能名称
actionBody
:
{
pushUrl
:
pushUrl
,
// Y 推送地址
actionType
:
"updateChanceStatus"
,
// Y 推送地址接收时的功能名称
notifyUrl
:
""
,
// N 推送成功后通知的Url
identifyCode
:
"ali.vat"
,
// Y 操作的业务标识
messageBody
:
pobj
.
actionBody
,
// Y 推送的业务消息,必须有一项对象属性值
headData
:
""
//N 请求头信息,Json格式,如:{token:"XXXXXXX"}
},
requestId
:
pobj
.
requestId
||
""
// N 请求id
}
this
.
opQueuePushClientPost
(
pobj
,
this
.
opPushQueueUrl
,
reqParams
);
return
system
.
getResultSuccess
();
}
return
res
;
...
...
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
d2b4c9df
...
...
@@ -13,6 +13,7 @@ class UtilsNeedService extends AppServiceBase {
this
.
ossClient
=
system
.
getObject
(
"util.ossClient"
);
this
.
restClient
=
system
.
getObject
(
"util.restClient"
);
this
.
utilsOrderSve
=
system
.
getObject
(
"service.utilsSve.utilsOrderSve"
);
this
.
opPushQueueUrl
=
settings
.
opPushQueueUrl
();
}
/**
...
...
@@ -51,6 +52,22 @@ class UtilsNeedService extends AppServiceBase {
}
else
{
pobj
.
actionBody
.
type
=
"ali.edi"
;
}
// 2020 0806 lin 新增推送
var
reqParams
=
{
actionType
:
"produceData"
,
// Y 功能名称
actionBody
:
{
pushUrl
:
interface_params_info
.
pushUrl
,
// Y 推送地址
actionType
:
"addChance"
,
// Y 推送地址接收时的功能名称
notifyUrl
:
""
,
// N 推送成功后通知的Url
identifyCode
:
"ali.vat"
,
// Y 操作的业务标识
messageBody
:
pobj
.
actionBody
,
// Y 推送的业务消息,必须有一项对象属性值
headData
:
""
//N 请求头信息,Json格式,如:{token:"XXXXXXX"}
},
requestId
:
pobj
.
requestId
||
""
// N 请求id
}
this
.
opQueuePushClientPost
(
pobj
,
this
.
opPushQueueUrl
,
reqParams
);
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushNeedICPBusiness"
);
}
}
...
...
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