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
08a99740
Commit
08a99740
authored
Aug 19, 2020
by
王栋源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdy
parent
e497505a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
11 deletions
+40
-11
center-channel/app/base/service/impl/common/centerorderSve.js
+8
-7
center-channel/app/base/service/impl/common/qcCenterOrderSve.js
+9
-0
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
+23
-4
No files found.
center-channel/app/base/service/impl/common/centerorderSve.js
View file @
08a99740
...
...
@@ -203,7 +203,7 @@ class CenterorderService extends AppServiceBase {
/**
* 推送ICP交付信息至企业宝(交付系统)
*/
async
pushIcpOrderDelivery2Qfb
(
orderNo
,
needsolution
,
status
)
{
async
pushIcpOrderDelivery2Qfb
(
orderNo
,
needsolution
,
status
)
{
// var pushObj = {
// orderNo: orderNo,
// needsolution: needsolution.solutionContent
...
...
@@ -214,7 +214,7 @@ class CenterorderService extends AppServiceBase {
// return system.getResultSuccess(data);
}
async
getaliicpProduce
(
pobj
){
async
getaliicpProduce
(
pobj
)
{
var
sobj
=
{
actionType
:
"getaliicpProduce"
,
// actionBody: { typeCode: itemResult.data.channelTypeCode, province: itemResult.data.province },
...
...
@@ -304,7 +304,7 @@ class CenterorderService extends AppServiceBase {
city
:
pobj
.
actionBody
.
province
,
regType
:
pobj
.
actionBody
.
regType
,
orderNo
:
pobj
.
actionBody
.
channelOrder
.
channelOrderNo
,
orderPrice
:
Number
(
pobj
.
actionBody
.
orderPrice
/
100
)
,
orderPrice
:
Number
(
pobj
.
actionBody
.
orderPrice
/
100
)
,
phone
:
pobj
.
actionBody
.
publishMobile
,
needId
:
solutiondata
.
data
.
channelNeedNo
},
...
...
@@ -315,10 +315,11 @@ class CenterorderService extends AppServiceBase {
orderNo
:
orderrtn
.
data
.
orderNo
,
//pobj.actionBody.channelOrder.channelOrderNo,
needsolution
:
solutiondata
.
data
.
solutionContent
,
channelNeedNo
:
solutiondata
.
data
.
channelNeedNo
,
skuCode
:
data
.
data
.
payCode
,
servicer
:{
code
:
'gsb'
,
name
:
'公司宝'
channelSolutionNo
:
solutiondata
.
data
.
channelSolutionNo
,
skuCode
:
data
.
data
.
payCode
,
servicer
:
{
code
:
'gsb'
,
name
:
'公司宝'
}
},
appInfo
:
pobj
.
appInfo
...
...
center-channel/app/base/service/impl/common/qcCenterOrderSve.js
View file @
08a99740
...
...
@@ -70,6 +70,15 @@ class QcCenterOrderService extends AppServiceBase {
// requestId: pobj.requestId || "" // N 请求id
// }
// this.opQueuePushClientPost(pobj, this.opPushQueueUrl, reqParams);
this
.
logCtl
.
info
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appkey
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_key
||
""
:
""
,
requestId
:
pobj
.
requestId
||
""
,
op
:
"service/impl/common/qcCenterOrderSve.js/submitIcpProgramme"
,
content
:
JSON
.
stringify
(
pobj
),
resultInfo
:
needinfo
,
optitle
:
"createSolution推送蜂擎获取的接口信息->aliBusiness2Delivery"
,
});
var
reqParams
=
{
actionBody
:
{
intentionBizId
:
needinfo
.
channelNeedNo
,
...
...
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
08a99740
...
...
@@ -201,6 +201,15 @@ class UtilsNeedService extends AppServiceBase {
pobj
.
actionType
=
"abolishIcpProgrammeByNeed"
var
reqUrl
=
this
.
centerOrderUrl
+
"action/qcapi/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
this
.
logCtl
.
info
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appkey
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_key
||
""
:
""
,
requestId
:
pobj
.
requestId
||
""
,
op
:
"service/impl/utilsSve/utilsNeedSve.js/needCloseIcp"
,
content
:
JSON
.
stringify
(
pobj
),
resultInfo
:
result
,
optitle
:
"abolishIcpProgrammeByNeed推送蜂擎获取的接口信息->aliBusiness2Delivery"
,
});
if
(
result
.
status
==
0
)
{
if
(
result
.
data
)
{
pobj
.
actionBody
.
orderNo
=
result
.
data
;
...
...
@@ -209,16 +218,26 @@ class UtilsNeedService extends AppServiceBase {
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
}
}
//推送交付系统
var
reqParams
=
{
actionBody
:
{
intentionBizId
:
pobj
.
actionBody
.
channelNeedNo
,
status
:
"closeNeed"
status
:
"closeNeed"
},
appInfo
:
pobj
.
appInfo
}
self
.
utilsPushSve
.
aliBusiness2Delivery
(
reqParams
,
"updateChanceStatus"
);
//日志记录
self
.
logCtl
.
info
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appkey
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_key
||
""
:
""
,
requestId
:
pobj
.
requestId
||
""
,
op
:
"service/impl/utilsSve/utilsNeedSve.js/needCloseIcp"
,
content
:
JSON
.
stringify
(
reqParams
),
resultInfo
:
""
,
optitle
:
"updateChanceStatus推送蜂擎获取的接口信息->aliBusiness2Delivery"
,
});
// 推送ali
var
a
=
await
self
.
aliclient
.
reqbyget
({
action
:
"CloseIntention"
,
reqbody
:
{
BizId
:
actionBody
.
channelNeedNo
,
Note
:
actionBody
.
note
},
apiVersion
:
"2019-05-08"
});
console
.
log
(
a
);
...
...
@@ -457,7 +476,7 @@ module.exports = UtilsNeedService;
// var a=new UtilsNeedService();
// a.needCloseIcp({actionBody:{channelNeedNo:20200804200124000001,note:"ceshifankui"}},{channelNeedNo:20200803095203000001,note:"ceshifankui"});
var
a
=
new
UtilsNeedService
();
a
.
test
({
actionBody
:{
intentionBizId
:
"20200803095203000001"
,
userFeedBack
:
true
}
});
var
a
=
new
UtilsNeedService
();
a
.
test
({
actionBody
:
{
intentionBizId
:
"20200803095203000001"
,
userFeedBack
:
true
}
});
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