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
0416bb93
Commit
0416bb93
authored
Nov 13, 2019
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
a1d2aad0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
igirl-channel-web/app/base/controller/impl/trademark/tmqueryCtl.js
+5
-2
igirl-channel-web/app/base/db/metadata/apps/platform.js
+2
-2
igirl-channel-web/app/config/routes/web.js
+2
-2
igirl-channel-web/app/config/settings.js
+1
-1
No files found.
igirl-channel-web/app/base/controller/impl/trademark/tmqueryCtl.js
View file @
0416bb93
...
...
@@ -7,7 +7,7 @@ class tmqueryCtl extends CtlBase {
super
();
this
.
channelApiUrl
=
settings
.
channelApiUrl
();
this
.
appInfo
=
{
1688
:
{
appkey
:
"201911
051030
"
,
secret
:
"eeb18393aade40149287b024d8ba0850"
,
selfRegistProduct
:
[
"5743091"
]
}
1688
:
{
appkey
:
"201911
131657
"
,
secret
:
"eeb18393aade40149287b024d8ba0850"
,
selfRegistProduct
:
[
"5743091"
]
}
};
this
.
execClient
=
system
.
getObject
(
"util.execClient"
);
}
...
...
@@ -44,10 +44,12 @@ class tmqueryCtl extends CtlBase {
}
var
oldActionType
=
reqobj
.
actionType
;
var
oldActionBody
=
reqobj
.
actionBody
;
var
oldIsUser
=
reqobj
.
isUser
;
if
(
reqobj
.
isDecryptUser
==
"yes"
)
{
reqobj
.
actionType
=
"decryptStr"
;
reqobj
.
isUser
=
"no"
;
let
currentDate
=
Math
.
floor
(
new
Date
().
getTime
()
/
1000
);
reqobj
.
actionBody
=
{
opStr
:
oldActionBody
.
channelUserId
,
timeStamp
:
currentDate
};
reqobj
.
actionBody
=
{
opStr
:
decodeURIComponent
(
oldActionBody
.
channelUserId
)
,
timeStamp
:
currentDate
};
var
decryptSignResult
=
await
this
.
createSign
(
reqobj
.
actionBody
,
tokenInfo
.
data
.
secret
);
if
(
decryptSignResult
.
status
!=
0
)
{
return
decryptSignResult
;
...
...
@@ -69,6 +71,7 @@ class tmqueryCtl extends CtlBase {
oldActionBody
.
channelUserId
=
decryptResult
.
data
;
reqobj
.
actionType
=
oldActionType
;
reqobj
.
actionBody
=
oldActionBody
;
reqobj
.
isUser
=
oldIsUser
;
var
signResult
=
await
this
.
createSign
(
reqobj
.
actionBody
,
tokenInfo
.
data
.
secret
);
if
(
signResult
.
status
!=
0
)
{
return
signResult
;
...
...
igirl-channel-web/app/base/db/metadata/apps/platform.js
View file @
0416bb93
module
.
exports
=
{
"appid"
:
"
bfe73612fa024822941e3e1ecd9a06e1
"
,
"label"
:
"
研发开放平台
"
,
"appid"
:
"
201911061258
"
,
"label"
:
"
知产渠道api web应用
"
,
"config"
:
{
"rstree"
:
{
"code"
:
"paasroot"
,
...
...
igirl-channel-web/app/config/routes/web.js
View file @
0416bb93
...
...
@@ -17,7 +17,7 @@ module.exports = function (app) {
res
.
end
(
JSON
.
stringify
(
result
));
return
;
}
var
skipUrl
=
"/#/1688/jdindentlist?channelUserId="
+
result
.
data
;
var
skipUrl
=
"/#/1688/jdindentlist?channelUserId="
+
encodeURIComponent
(
result
.
data
)
;
res
.
redirect
(
skipUrl
);
});
app
.
get
(
"/1688/auxRegister"
,
async
function
(
req
,
res
)
{
...
...
@@ -34,7 +34,7 @@ module.exports = function (app) {
res
.
end
(
JSON
.
stringify
(
result
));
return
;
}
var
skipUrl
=
"/#/1688/jdindentlist?channelUserId="
+
result
.
data
;
var
skipUrl
=
"/#/1688/jdindentlist?channelUserId="
+
encodeURIComponent
(
result
.
data
)
;
res
.
redirect
(
skipUrl
);
});
app
.
get
(
"/"
,
async
function
(
req
,
res
)
{
...
...
igirl-channel-web/app/config/settings.js
View file @
0416bb93
...
...
@@ -13,7 +13,7 @@ var ENVINPUT = {
};
var
settings
=
{
env
:
ENVINPUT
.
APP_ENV
,
appKey
:
"
bfe73612fa024822941e3e1ecd9a06e1
"
,
appKey
:
"
201911061258
"
,
paasKey
:
"wx76a324c5d201d1a4"
,
secret
:
"1671ab5405fa49c8b5dd0b0c55c279b8"
,
salt
:
"%iatpD1gcxz7iF#B"
,
...
...
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