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
213e607f
Commit
213e607f
authored
Dec 10, 2019
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
ee51e48d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
4 deletions
+26
-4
igirl-channel-jdweb/app/base/controller/impl/trademark/tmqueryCtl.js
+25
-3
igirl-channel-jdweb/app/config/routes/web.js
+1
-1
No files found.
igirl-channel-jdweb/app/base/controller/impl/trademark/tmqueryCtl.js
View file @
213e607f
...
...
@@ -251,7 +251,7 @@ class tmqueryCtl extends CtlBase {
if
(
itemCodeList
.
length
<
2
)
{
return
system
.
getResult
(
null
,
"itemCode is error"
);
}
var
tmpResult
=
await
this
.
opJdOrde
r
(
pobj
.
actionBody
.
itemCode
,
itemCodeList
,
req
);
var
tmpResult
=
await
this
.
getPayPageAdd
r
(
pobj
.
actionBody
.
itemCode
,
itemCodeList
,
req
);
// { result: true,
// data:
// '{"success":true,"code":null,"msg":null,"data":{"orderNumber":"6058867","erpOrderId":"523198741458590844",
...
...
@@ -271,7 +271,29 @@ class tmqueryCtl extends CtlBase {
}
return
system
.
getResultSuccess
()
}
async
opJdOrder
(
itemCode
,
itemCodeList
,
req
)
{
// 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
{
const
{
Signer
,
Context
}
=
require
(
'../jd-gateway-sdk'
);
...
...
@@ -372,7 +394,7 @@ class tmqueryCtl extends CtlBase {
return
{
success
:
false
,
code
:
-
200
,
msg
:
errorMsg
.
stack
};
}
}
async
push
Jd
Order
(
pushData
,
req
)
{
//处理京东推送的订单信息
async
push
Pay
Order
(
pushData
,
req
)
{
//处理京东推送的订单信息
try
{
var
signResult
=
await
this
.
createSign
(
pushData
,
"6B876EB84731E166D76E1F73AD5764BA"
,
true
);
if
(
signResult
.
status
!=
0
)
{
...
...
igirl-channel-jdweb/app/config/routes/web.js
View file @
213e607f
...
...
@@ -32,7 +32,7 @@ module.exports = function (app) {
// clientIp: ""
// });
req
.
query
.
actionProcess
=
"jd"
;
var
result
=
await
tmqueryCtl
.
push
Jd
Order
(
req
.
query
,
req
);
var
result
=
await
tmqueryCtl
.
push
Pay
Order
(
req
.
query
,
req
);
// oplogCtl.info({
// optitle: "############################################操作订单结果.................orderNotify",
// op: "/jd/orderNotify",
...
...
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