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
64a11372
Commit
64a11372
authored
Apr 02, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pushTmConfirm
parent
24d5c9a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
center-channel/app/base/service/impl/utilsSve/utilsOpOrderSve.js
+45
-0
No files found.
center-channel/app/base/service/impl/utilsSve/utilsOpOrderSve.js
View file @
64a11372
...
...
@@ -57,7 +57,52 @@ class UtilsOpOrderService extends AppServiceBase {
}
var
reqUrl
=
this
.
centerOrderUrl
+
"action/order/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
if
(
result
&&
result
.
status
==
0
&&
result
.
data
){
// this.pushTmConfirm(result,pobj,actionBody);//推送方案确认信息
return
system
.
getResultSuccess
();
}
return
result
;
}
//推送方案确认信息
async
pushTmConfirm
(
result
,
pobj
,
actionBody
){
var
orderdelivery
=
result
.
data
;
var
deliveryContent
=
orderdelivery
.
deliveryContent
;
if
(
deliveryContent
){
var
pushObj
=
{
//推送参数
serviceNo
:
deliveryContent
.
serviceNo
,
isConfirm
:
actionBody
.
isConfirm
,
channelCode
:
deliveryContent
.
channelCode
,
notes
:
actionBody
.
notes
||
""
,
appInfo
:
pobj
.
appInfo
};
var
tmpPobj
=
{
appInfo
:
pobj
.
appInfo
,
actionBody
:
pushObj
}
//获取产品详情
var
getProductDetailUrl
=
settings
.
centerAppUrl
()
+
"action/opProduct/springBoard"
;
var
getProductDetailObj
=
{
"actionType"
:
"getProductDetail"
,
"appInfo"
:
pobj
.
appInfo
,
"actionBody"
:{
"channelItemCode"
:
deliveryContent
.
itemCode
}
};
var
productItemResult
=
await
this
.
restPostUrl
(
getProductDetailObj
,
getProductDetailUrl
);
if
(
productItemResult
.
status
!=
0
)
{
return
productItemResult
;
}
tmpPobj
.
actionBody
.
product_info
=
productItemResult
.
data
;
tmpPobj
.
actionBody
.
product_id
=
tmpPobj
.
actionBody
.
product_info
.
id
;
//获取推送接口信息
var
getProductInterfaceUrl
=
settings
.
centerAppUrl
()
+
"action/opProduct/springBoard"
;
var
getProductInterfaceObj
=
{
"actionType"
:
"getProductInterface"
,
"appInfo"
:
pobj
.
appInfo
,
"actionBody"
:{
"product_id"
:
tmpPobj
.
actionBody
.
product_id
}
};
var
productItemInterfaceResult
=
await
this
.
restPostUrl
(
getProductInterfaceObj
,
getProductInterfaceUrl
);
tmpPobj
.
actionBody
.
product_info
.
interface_info
=
productItemInterfaceResult
.
data
;
this
.
utilsPushSve
.
pushBusInfo
(
tmpPobj
,
"pushOpSolution"
,
1
);
}
}
}
module
.
exports
=
UtilsOpOrderService
;
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