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
5b6f60ba
Commit
5b6f60ba
authored
Dec 04, 2019
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
dc0e1b91
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
29 deletions
+6
-29
igirl-channel-jdweb/app/base/controller/impl/trademark/tmqueryCtl.js
+3
-26
igirl-channel-jdweb/app/base/db/metadata/apps/platform.js
+1
-1
igirl-channel-jdweb/app/config/settings.js
+2
-2
No files found.
igirl-channel-jdweb/app/base/controller/impl/trademark/tmqueryCtl.js
View file @
5b6f60ba
...
...
@@ -7,7 +7,7 @@ class tmqueryCtl extends CtlBase {
super
();
this
.
channelApiUrl
=
settings
.
channelApiUrl
();
this
.
appInfo
=
{
1688
:
{
appkey
:
"201911131657"
,
secret
:
"eeb18393aade40149287b024d8ba0850"
,
selfRegistProduct
:
[
"5743091"
]
}
jd
:
{
appkey
:
"201911251551"
,
secret
:
"56006077354d48858026c80c0e10bef6"
}
};
this
.
execClient
=
system
.
getObject
(
"util.execClient"
);
}
...
...
@@ -94,35 +94,12 @@ class tmqueryCtl extends CtlBase {
if
(
result
.
status
&&
result
.
status
!=
0
)
{
return
result
;
}
// if (pobj.actionType == "getChannelOrderInfo") {
// var tmpSkipUrl = await this.getPageSkipUrl(reqobj.actionProcess, reqobj.actionBody.itemCode);
// if (!tmpSkipUrl) {
// return system.getResult(null, "获取页面url失败");
// }
// result.skipUrl = tmpSkipUrl;
// }//获取渠道订单信息
return
result
;
}
catch
(
e
)
{
console
.
log
(
e
.
stack
,
"操作error..................."
);
return
system
.
getResult
(
null
,
"操作失败"
);
}
}
// async getPageSkipUrl(reqType, itemCode) {
// var self = this;
// var skipUrl = "";
// switch (reqType) {
// case "1688":
// if (self.appInfo["1688"].selfRegistProduct.indexOf(itemCode) < 0) {
// skipUrl = "/#/1688/jdindentlist";
// } else {
// skipUrl = "/#/1688/selftmreg";
// }
// break;
// default:
// break;
// }
// return skipUrl;
// }
async
getToken
(
reqType
)
{
var
self
=
this
;
...
...
@@ -130,8 +107,8 @@ class tmqueryCtl extends CtlBase {
var
reqTokenUrl
=
this
.
channelApiUrl
+
"/auth/accessAuth/getToken"
;
var
reqParam
=
{};
switch
(
reqType
)
{
case
"
1688
"
:
reqParam
=
self
.
appInfo
[
"
1688
"
];
case
"
jd
"
:
reqParam
=
self
.
appInfo
[
"
jd
"
];
break
;
default
:
break
;
...
...
igirl-channel-jdweb/app/base/db/metadata/apps/platform.js
View file @
5b6f60ba
module
.
exports
=
{
"appid"
:
"201911
061258
"
,
"appid"
:
"201911
251551
"
,
"label"
:
"知产渠道api web应用"
,
"config"
:
{
"rstree"
:
{
...
...
igirl-channel-jdweb/app/config/settings.js
View file @
5b6f60ba
...
...
@@ -13,9 +13,9 @@ var ENVINPUT = {
};
var
settings
=
{
env
:
ENVINPUT
.
APP_ENV
,
appKey
:
"201911
061258
"
,
appKey
:
"201911
251551
"
,
paasKey
:
"wx76a324c5d201d1a4"
,
secret
:
"
1671ab5405fa49c8b5dd0b0c55c279b8
"
,
secret
:
"
56006077354d48858026c80c0e10bef6
"
,
salt
:
"%iatpD1gcxz7iF#B"
,
basepath
:
path
.
normalize
(
path
.
join
(
__dirname
,
'../..'
)),
port
:
process
.
env
.
NODE_PORT
||
4004
,
...
...
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