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
9a6967b6
Commit
9a6967b6
authored
Jan 12, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
5c06e9c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
center-app/app/base/api/impl/auth/accessAuth.js
+1
-5
center-app/app/base/utils/businessManager/opPlatformUtils.js
+3
-2
No files found.
center-app/app/base/api/impl/auth/accessAuth.js
View file @
9a6967b6
...
...
@@ -7,11 +7,7 @@ class AccessAuthAPI extends APIBase {
}
async
getTokenByHosts
(
pobj
,
qobj
,
req
)
{
var
app_hosts
=
pobj
.
app_hosts
||
""
;
if
(
!
app_hosts
)
{
return
system
.
getResult
(
null
,
"app_hosts can not be empty !"
);
}
var
result
=
await
this
.
opPlatformUtils
.
getReqTokenByHosts
(
app_hosts
);
var
result
=
await
this
.
opPlatformUtils
.
getReqTokenByHosts
(
pobj
);
return
result
;
}
...
...
center-app/app/base/utils/businessManager/opPlatformUtils.js
View file @
9a6967b6
...
...
@@ -212,9 +212,10 @@ class OpPlatformUtils {
}
//------------------------新的方式------------------------------------------------------------------------------------
async
getReqTokenByHosts
(
a
pp_hosts
)
{
async
getReqTokenByHosts
(
a
ctionBody
)
{
var
cacheManager
=
system
.
getObject
(
"db.common.cacheManager"
);
var
result
=
await
cacheManager
[
"AppTokenByHostsCache"
].
cache
(
app_hosts
,
null
,
system
.
shortExTime
);
var
inputkey
=
actionBody
.
reqType
==
"hosts"
?
actionBody
.
appHosts
:
actionBody
.
appkey
;
var
result
=
await
cacheManager
[
"AppTokenByHostsCache"
].
cache
(
inputkey
,
actionBody
,
system
.
shortExTime
);
return
result
;
}
async
getReqUserPinByChannelUserId
(
pobj
)
{
...
...
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