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
eaf5b6c6
Commit
eaf5b6c6
authored
Feb 27, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
28ecc234
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
1 deletions
+48
-1
igirl-channel/app/base/api/impl/action/tmOrder.js
+4
-1
igirl-channel/app/base/service/impl/dborder/orderSve.js
+44
-0
No files found.
igirl-channel/app/base/api/impl/action/tmOrder.js
View file @
eaf5b6c6
...
@@ -65,7 +65,7 @@ class TmOrderAPI extends APIBase {
...
@@ -65,7 +65,7 @@ class TmOrderAPI extends APIBase {
// sy
// sy
case
"jdAddQifuOrder"
:
case
"jdAddQifuOrder"
:
pobj
.
actionBody
.
quantity
=
1
;
pobj
.
actionBody
.
quantity
=
1
;
pobj
.
actionBody
.
channelOrder
=
{};
pobj
.
actionBody
.
channelOrder
=
{};
pobj
.
actionBody
.
channelOrder
.
channelServiceNo
=
pobj
.
actionBody
.
needNo
;
pobj
.
actionBody
.
channelOrder
.
channelServiceNo
=
pobj
.
actionBody
.
needNo
;
pobj
.
actionBody
.
channelOrder
.
channelOrderNo
=
pobj
.
actionBody
.
needNoOrderNo
;
pobj
.
actionBody
.
channelOrder
.
channelOrderNo
=
pobj
.
actionBody
.
needNoOrderNo
;
pobj
.
actionBody
.
channelOrder
.
payTime
=
new
Date
();
pobj
.
actionBody
.
channelOrder
.
payTime
=
new
Date
();
...
@@ -96,6 +96,9 @@ class TmOrderAPI extends APIBase {
...
@@ -96,6 +96,9 @@ class TmOrderAPI extends APIBase {
case
"getOrderDeliveryInfo"
:
case
"getOrderDeliveryInfo"
:
opResult
=
await
this
.
orderSve
.
getOrderDeliveryInfo
(
pobj
,
action_body
,
req
);
opResult
=
await
this
.
orderSve
.
getOrderDeliveryInfo
(
pobj
,
action_body
,
req
);
break
;
break
;
case
"getOrderDeliveryFlowInfo"
:
opResult
=
await
this
.
orderSve
.
getOrderDeliveryFlowInfo
(
pobj
,
action_body
,
req
);
break
;
case
"getIcbcOrderDetails"
:
case
"getIcbcOrderDetails"
:
opResult
=
await
this
.
orderSve
.
getIcbcOrderDetails
(
pobj
,
req
);
opResult
=
await
this
.
orderSve
.
getIcbcOrderDetails
(
pobj
,
req
);
break
;
break
;
...
...
igirl-channel/app/base/service/impl/dborder/orderSve.js
View file @
eaf5b6c6
...
@@ -899,6 +899,50 @@ class OrderService extends ServiceBase {
...
@@ -899,6 +899,50 @@ class OrderService extends ServiceBase {
return
result
;
return
result
;
}
}
/**
/**
* 获取启服务通订单交付流程信息
* @param {*} pobj
* @param {*} actionBody
*/
async
getOrderDeliveryFlowInfo
(
pobj
,
actionBody
,
req
)
{
if
(
!
actionBody
.
channelUserId
)
{
return
system
.
getResult
(
null
,
"actionBody.channelUserId must not empty"
);
}
var
token
=
""
;
var
tokenRes
=
await
this
.
getCenterChannelToken
(
req
.
app
);
if
(
tokenRes
&&
tokenRes
.
status
==
0
&&
tokenRes
.
data
)
{
token
=
tokenRes
.
data
.
token
;
}
if
(
!
token
)
{
return
system
.
getResultFail
(
-
88
,
"获取token失败"
);
}
//获取用户userpin
var
userpin
=
""
;
pobj
.
actionType
=
"getLoginByUserName"
;
pobj
.
actionBody
.
userName
=
actionBody
.
channelUserId
;
pobj
.
actionBody
.
mobile
=
req
.
user
.
userMoblie
;
var
url
=
settings
.
centerChannelUrl
()
+
"web/auth/accessAuth/springBoard"
;
var
userpinResult
=
await
this
.
execClient
.
execPushDataPost
(
pobj
,
url
,
token
);
if
(
!
userpinResult
||
!
userpinResult
.
stdout
)
{
return
system
.
getResult
(
null
,
userpinResult
.
msg
);
}
var
userpinResultTmp
=
JSON
.
parse
(
userpinResult
.
stdout
);
if
(
userpinResultTmp
.
status
!=
0
&&
userpinResultTmp
.
status
!=
2060
)
{
return
system
.
getResultFail
(
-
99
,
"获取userpin失败"
);
}
userpin
=
userpinResultTmp
.
data
.
userpin
;
if
(
!
userpin
)
{
return
system
.
getResultFail
(
-
88
,
"获取userpin失败!!"
);
}
url
=
settings
.
centerChannelUrl
()
+
"web/opaction/order/springBoard"
;
pobj
.
actionType
=
"getOrderDeliveryFlowInfo"
;
var
rtn
=
await
this
.
execClient
.
execDataPostByTokenUserPin
(
pobj
,
url
,
token
,
userpin
);
if
(
!
rtn
||
!
rtn
.
stdout
)
{
return
system
.
getResult
(
null
,
"execPost is empty"
);
}
var
result
=
JSON
.
parse
(
rtn
.
stdout
);
return
result
;
}
/**
* 获取启服务通订单列表信息
* 获取启服务通订单列表信息
* @param {*} pobj
* @param {*} pobj
* @param {*} actionBody
* @param {*} actionBody
...
...
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