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
6b41e130
Commit
6b41e130
authored
Dec 10, 2019
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
86b16ba0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
25 deletions
+34
-25
igirl-channel-jdweb/app/base/controller/impl/trademark/tmqueryCtl.js
+34
-25
No files found.
igirl-channel-jdweb/app/base/controller/impl/trademark/tmqueryCtl.js
View file @
6b41e130
...
...
@@ -107,7 +107,7 @@ class tmqueryCtl extends CtlBase {
return
system
.
getResult
(
null
,
"处理请求失败"
);
}
if
([
"jd"
].
indexOf
(
pobj
.
actionProcess
)
>=
0
&&
pobj
.
actionType
==
"subTmOrder"
)
{
var
opPayPageInfoResult
=
await
this
.
opPayPageInfo
(
pobj
,
req
);
var
opPayPageInfoResult
=
await
this
.
opPayPageInfo
(
pobj
,
orderResult
,
req
);
return
opPayPageInfoResult
;
}
return
result
;
...
...
@@ -242,7 +242,7 @@ class tmqueryCtl extends CtlBase {
return
system
.
getResultFail
(
-
200
,
"操作error"
);
}
}
async
opPayPageInfo
(
pobj
,
req
)
{
async
opPayPageInfo
(
pobj
,
orderResult
,
req
)
{
if
(
!
pobj
.
actionBody
.
itemCode
)
{
return
system
.
getResult
(
null
,
"itemCode param is not empty"
);
}
...
...
@@ -271,28 +271,28 @@ class tmqueryCtl extends CtlBase {
}
return
system
.
getResultSuccess
()
}
//
async putPayOrderData() {
//
var tokenInfo = await this.getToken(pushData.actionProcess);
//
if (tokenInfo.status != 0) {
//
return tokenInfo;
//
}
//
var param = {
//
actionProcess: pushData.actionProcess,
//
actionType: "updateOrderStatus",
//
actionBody: {
//
channelUserId: pushData.jdPin,
//
channelItemCode: pushData.serviceCode,
//
needNoOrderNo: pushData.orderId,
//
buyerMoblie: pushData.mobile
//
},
//
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");
//
}
//
}
async
putPayOrderData
()
{
var
tokenInfo
=
await
this
.
getToken
(
pushData
.
actionProcess
);
if
(
tokenInfo
.
status
!=
0
)
{
return
tokenInfo
;
}
var
param
=
{
actionProcess
:
pushData
.
actionProcess
,
actionType
:
"updateOrderStatus"
,
actionBody
:
{
channelUserId
:
pushData
.
jdPin
,
channelItemCode
:
pushData
.
serviceCode
,
needNoOrderNo
:
pushData
.
orderId
,
buyerMoblie
:
pushData
.
mobile
},
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"
);
}
}
async
getPayPageAddr
(
itemCode
,
itemCodeList
,
req
)
{
try
{
...
...
@@ -311,7 +311,16 @@ class tmqueryCtl extends CtlBase {
//POST
var
qs
=
require
(
'querystring'
);
// var post_data = { pin: "syaify", serviceId: 580010, itemCode: "FW_GOODS-580010-1", platform: 6, orderNum: 1, articleType: 1 };//这是需要提交的数据
var
post_data
=
{
pin
:
req
.
session
.
userPinInfo
.
channelUserId
,
serviceId
:
itemCodeList
[
1
],
itemCode
:
itemCode
,
platform
:
6
,
orderNum
:
1
,
articleType
:
1
,
additions
:
"{ 246: 0 }"
};
//这是需要提交的数据
var
post_data
=
{
pin
:
req
.
session
.
userPinInfo
.
channelUserId
,
serviceId
:
itemCodeList
[
1
],
itemCode
:
itemCode
,
platform
:
6
,
orderNum
:
1
,
articleType
:
1
,
additions
:
"{
\"
246
\"
: 0 }"
};
//这是需要提交的数据
// var tmpContent = '{"pin":"syaify","serviceId":"581976","itemCode":"FW_GOODS-581976","platform":6,"orderNum":1,"articleType":1,"additions":{"246":0}}';
...
...
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