Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
ops_sdk
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PublicSource
ops_sdk
Commits
97ddcf71
Commit
97ddcf71
authored
Mar 13, 2019
by
shenshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加用户信息的常量
parent
176362d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
base_handler.py
websdk/base_handler.py
+1
-1
consts.py
websdk/consts.py
+2
-0
No files found.
websdk/base_handler.py
View file @
97ddcf71
...
...
@@ -49,7 +49,7 @@ class BaseHandler(RequestHandler):
user_info
=
jwt
.
decode
(
auth_key
,
verify
=
False
)
.
get
(
'data'
)
if
not
user_info
:
raise
HTTPError
(
401
,
'auth failed'
)
self
.
user_id
=
user_info
.
get
(
'user_id'
,
None
)
self
.
username
=
user_info
.
get
(
'username'
,
None
)
self
.
nickname
=
user_info
.
get
(
'nickname'
,
None
)
...
...
websdk/consts.py
View file @
97ddcf71
...
...
@@ -112,6 +112,8 @@ const.DOMAIN = "dysmsapi.aliyuncs.com"
### app settings
const
.
APP_SETTINGS
=
'APP_SETTINGS'
### all user info
const
.
USERS_INFO
=
'USERS_INFO'
##### API GW
const
.
WEBSITE_API_GW_URL
=
'WEBSITE_API_GW_URL'
const
.
EMAILLOGIN_DOMAIN
=
'EMAILLOGIN_DOMAIN'
...
...
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