Commit ecb4b8e7 by dong

fix20230201

parent 79573227
......@@ -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="获取用户信息失败")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment