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
33e3687d
Commit
33e3687d
authored
Dec 26, 2019
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
7083c362
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
15 deletions
+21
-15
igirl-channel-web/app/base/controller/impl/trademark/tmqueryCtl.js
+16
-11
igirl-channel-web/app/config/routes/web.js
+3
-2
igirl-channel-web/app/front/vues/pages/jdtrademark/jdtrademark.js
+2
-2
No files found.
igirl-channel-web/app/base/controller/impl/trademark/tmqueryCtl.js
View file @
33e3687d
...
...
@@ -247,7 +247,7 @@ class tmqueryCtl extends CtlBase {
var
param
=
{
actionProcess
:
pobj
.
actionProcess
,
actionType
:
"createChannelUser"
,
actionBody
:
{
channelUserId
:
pobj
.
channelUserId
},
actionBody
:
{
channelUserId
:
pobj
.
channelUserId
,
channelUserMoblie
:
pobj
.
channelUserMoblie
||
""
},
isUser
:
"yes"
};
var
reqUrl
=
this
.
channelApiUrl
+
"/action/tmTools/springBoard"
;
...
...
@@ -377,26 +377,31 @@ class tmqueryCtl extends CtlBase {
ctx
.
headers
.
set
(
'content-type'
,
'application/json'
);
let
credentials
=
{
accessKeyId
:
'
7CCB9D55C8DB52DD943CC5B00DDA6F44
'
,
//替换自己的AK
secretAccessKey
:
'
1C83C868AD9FA00F6D56DBF2CAE5A8DF
'
//替换自己的SK--jd>>>>>>>
accessKeyId
:
'
A46DC38C2435B0FFF8615B284B958A93
'
,
//替换自己的AK
secretAccessKey
:
'
0D661D3C4890563AE73B7AE50C6207A8
'
//替换自己的SK--jd>>>>>>>
}
//测试报文:
//ctx.body = "pin=jcloud_pRiHQTd&serviceId=580010&itemCode=FW_GOODS-580010-1&platform=6"
//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: '{ \"247\": 0 }'
// };//这是需要提交的数据------有附加项
var
post_data
=
{
pin
:
req
.
session
.
userPinInfo
.
channelUserId
,
serviceId
:
itemCodeList
[
1
],
itemCode
:
itemCode
,
platform
:
6
,
orderNum
:
1
,
articleType
:
1
,
additions
:
'{
\
"247
\
": 0 }'
};
//这是需要提交的数据
articleType
:
1
};
//这是需要提交的数据
// var tmpContent = '{"pin":"syaify","serviceId":"581976","itemCode":"FW_GOODS-581976","platform":6,"orderNum":1,"articleType":1,"additions":{"246":0}}';
var
tmpContent
=
JSON
.
stringify
(
post_data
);
var
tmpContentLength
=
Buffer
.
byteLength
(
tmpContent
);
ctx
.
body
=
tmpContent
;
...
...
@@ -458,7 +463,7 @@ class tmqueryCtl extends CtlBase {
}
async
pushJdPayOrder
(
pushData
,
req
)
{
//处理京东推送的订单信息
try
{
var
signResult
=
await
this
.
createSign
(
pushData
,
"
698FC4A1CBA6F999F023DF5ECA982181
"
,
true
);
var
signResult
=
await
this
.
createSign
(
pushData
,
"
F6FBD101C7571ADE231670F080653874
"
,
true
);
if
(
signResult
.
status
!=
0
)
{
return
signResult
;
}
...
...
@@ -538,7 +543,7 @@ class tmqueryCtl extends CtlBase {
channelUserId
:
req
.
session
.
userPinInfo
.
channelUserId
,
channelItemCode
:
pobj
.
actionBody
.
itemCode
,
order_param
:
{
mobile_phone
:
pobj
.
actionBody
.
apply
.
mobil
e
||
"18888888888"
,
//必填
mobile_phone
:
req
.
session
.
userPinInfo
.
userMobli
e
||
"18888888888"
,
//必填
goods_list
:
[{
//必填
goods_name
:
pobj
.
actionBody
.
itemCode
,
goods_quantity
:
1
,
...
...
igirl-channel-web/app/config/routes/web.js
View file @
33e3687d
...
...
@@ -8,7 +8,7 @@ const jwt = require('jsonwebtoken');
const
secret
=
'3rZ3aNfGAyQAB4sE'
;
//自定义
module
.
exports
=
function
(
app
)
{
app
.
get
(
"/admin"
,
async
function
(
req
,
res
)
{
res
.
redirect
(
"http://oauth2.jdcloud.com/authorize?response_type=token&redirect_uri=http://tm.plus.jdcloud.com/jdtm/getUser&state=OAjdlist&client_id=9
841572588670903
"
);
res
.
redirect
(
"http://oauth2.jdcloud.com/authorize?response_type=token&redirect_uri=http://tm.plus.jdcloud.com/jdtm/getUser&state=OAjdlist&client_id=9
491577327154697
"
);
return
;
});
...
...
@@ -192,7 +192,8 @@ module.exports = function (app) {
}
var
getUserparams
=
{
actionProcess
:
"gsbhome"
,
channelUserId
:
userInfo
.
data
.
phone
+
"_"
+
userInfo
.
data
.
id
channelUserId
:
userInfo
.
data
.
phone
+
"_"
+
userInfo
.
data
.
id
,
channelUserMoblie
:
userInfo
.
data
.
phone
};
var
userItemResult
=
await
tmqueryCtl
.
getUserIdEncryptStr
(
getUserparams
,
req
.
query
,
req
);
if
(
userItemResult
.
status
!=
0
)
{
...
...
igirl-channel-web/app/front/vues/pages/jdtrademark/jdtrademark.js
View file @
33e3687d
...
...
@@ -157,7 +157,7 @@
methods
:
{
/*全选 */
goIndentList
(){
location
.
href
=
"http://oauth2.jdcloud.com/authorize?response_type=token&redirect_uri=http://tm.plus.jdcloud.com/jdtm/getUser&state=jdindentlist&client_id=9
841572588670903
"
;
location
.
href
=
"http://oauth2.jdcloud.com/authorize?response_type=token&redirect_uri=http://tm.plus.jdcloud.com/jdtm/getUser&state=jdindentlist&client_id=9
491577327154697
"
;
},
handleCheckAllChange
(
val
)
{
if
(
val
)
{
...
...
@@ -200,7 +200,7 @@
if
(
code
.
channelItemCode
)
{
switch
(
code
.
itemCode
)
{
case
"zzsbzc"
:
location
.
href
=
"http://oauth2.jdcloud.com/authorize?response_type=token&redirect_uri=http://tm.plus.jdcloud.com/jdtm/getUser&state=selftmreg&client_id=9
841572588670903
"
;
location
.
href
=
"http://oauth2.jdcloud.com/authorize?response_type=token&redirect_uri=http://tm.plus.jdcloud.com/jdtm/getUser&state=selftmreg&client_id=9
491577327154697
"
;
/*this.$router.push({ path: "/jd/selftmreg", query: {} });*/
break
;
case
"fzsbzc"
:
...
...
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