Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mancheng
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
Administrator
mancheng
Commits
ecb4b8e7
Commit
ecb4b8e7
authored
Feb 01, 2023
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20230201
parent
79573227
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
apps/view_user/view.py
+7
-10
No files found.
apps/view_user/view.py
View file @
ecb4b8e7
...
...
@@ -24,9 +24,6 @@ from apps.utils.encrypt_decrypt.aes_cbc import encrypt, decrypt
# 给手机发验证码
from
view_choose.choose_view
import
get_district_name
@api_user.route
(
"/SendMobileCode"
,
methods
=
[
"POST"
])
def
send_phone_code
():
'''
...
...
@@ -284,19 +281,19 @@ def login_bypwd():
return
"晋城市"
else
:
if
'沁水'
in
district_name
:
return
'沁水县'
district_name
=
'沁水县'
if
'高平'
in
district_name
:
return
'高平市'
district_name
=
'高平市'
if
'阳城'
in
district_name
:
return
'阳城县'
district_name
=
'阳城县'
if
'陵川'
in
district_name
:
return
'陵川县'
district_name
=
'陵川县'
if
'泽州'
in
district_name
:
return
'泽州县'
district_name
=
'泽州县'
if
'城区'
in
district_name
:
return
'城区'
district_name
=
'城区'
if
'晋城经济技'
in
district_name
:
return
'晋城经济技术开发区'
district_name
=
'晋城经济技术开发区'
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DATAERR
,
msg
=
"获取用户信息失败"
)
...
...
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