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
d647a66d
Commit
d647a66d
authored
Dec 10, 2019
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
658c5a77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
igirl-channel-jdweb/app/base/controller/impl/trademark/tmqueryCtl.js
+15
-15
No files found.
igirl-channel-jdweb/app/base/controller/impl/trademark/tmqueryCtl.js
View file @
d647a66d
...
...
@@ -263,35 +263,33 @@ class tmqueryCtl extends CtlBase {
console
.
log
(
payDataResult
,
"payDataResult...........payDataResult........$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$..002.."
);
if
(
payDataResult
&&
payDataResult
.
success
&&
payDataResult
.
success
==
true
)
{
//更新订单信息
this
.
putPayOrderData
(
pobj
,
orderResult
,
payDataResult
,
req
);
return
system
.
getResultSuccess
({
payUrl
:
payDataResult
.
data
.
returnUrl
});
}
//成功
}
return
system
.
getResult
(
null
,
"pay page is error"
);
}
return
system
.
getResultSuccess
()
return
system
.
getResultSuccess
()
;
}
async
putPayOrderData
()
{
var
tokenInfo
=
await
this
.
getToken
(
p
ushData
.
actionProcess
);
async
putPayOrderData
(
pobj
,
orderResult
,
payDataResult
,
req
)
{
var
tokenInfo
=
await
this
.
getToken
(
p
obj
.
actionProcess
);
if
(
tokenInfo
.
status
!=
0
)
{
return
tokenInfo
;
}
var
param
=
{
actionProcess
:
p
ushData
.
actionProcess
,
actionProcess
:
p
obj
.
actionProcess
,
actionType
:
"updateOrderStatus"
,
actionBody
:
{
channelUserId
:
pushData
.
jdPin
,
channelItemCode
:
pushData
.
serviceCode
,
needNoOrderNo
:
pushData
.
orderId
,
buyerMoblie
:
pushData
.
mobile
channelUserId
:
req
.
session
.
userPinInfo
.
channelUserId
,
orderNo
:
orderResult
.
data
.
orderNo
,
channelServiceNo
:
payDataResult
.
data
.
erpOrderId
,
needNo
:
pobj
.
actionBody
.
itemCode
+
"_"
+
payDataResult
.
data
.
orderNumber
,
needNoOrderNo
:
payDataResult
.
data
.
orderNumber
},
isUser
:
"yes"
};
var
reqUrl
=
this
.
channelApiUrl
+
"/action/tmOrder/springBoard"
;
var
resultUser
=
await
this
.
execClient
.
execPostTK
(
param
,
reqUrl
,
tokenInfo
.
data
.
token
);
if
(
!
resultUser
)
{
return
system
.
getResult
(
null
,
"req error"
);
}
this
.
execClient
.
execPostTK
(
param
,
reqUrl
,
tokenInfo
.
data
.
token
);
}
async
getPayPageAddr
(
itemCode
,
itemCodeList
,
req
)
{
try
{
...
...
@@ -315,7 +313,7 @@ class tmqueryCtl extends CtlBase {
var
post_data
=
{
pin
:
req
.
session
.
userPinInfo
.
channelUserId
,
serviceId
:
itemCodeList
[
1
],
itemCode
:
"FW_GOODS-581976-1"
,
itemCode
:
itemCode
,
platform
:
6
,
orderNum
:
1
,
articleType
:
1
,
...
...
@@ -417,12 +415,13 @@ class tmqueryCtl extends CtlBase {
return
tokenInfo
;
}
var
param
=
{};
if
(
pushData
.
s
erviceCode
==
"FW_GOODS-581976
"
)
{
if
(
pushData
.
s
kuId
==
"FW_GOODS-581976-1
"
)
{
param
=
{
actionProcess
:
pushData
.
actionProcess
,
actionType
:
"updateOrderPayStatus"
,
actionBody
:
{
channelUserId
:
pushData
.
jdPin
,
payStatus
:
"yfk"
,
channelItemCode
:
pushData
.
serviceCode
,
needNoOrderNo
:
pushData
.
orderId
,
buyerMoblie
:
pushData
.
mobile
...
...
@@ -437,6 +436,7 @@ class tmqueryCtl extends CtlBase {
actionType
:
"addOrderAndDelivery"
,
actionBody
:
{
channelUserId
:
pushData
.
jdPin
,
needNo
:
pushData
.
skuId
+
"_"
+
pushData
.
orderId
,
needNoOrderNo
:
pushData
.
orderId
,
buyerMoblie
:
pushData
.
mobile
},
...
...
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