Commit a839326f by 魏强

测试账号;

parent 3bc890f6
...@@ -327,8 +327,8 @@ def login(): ...@@ -327,8 +327,8 @@ def login():
login_type = json_data['type'] if 'type' in json_data else 1 # 1.验证码登录,2.密码登录 login_type = json_data['type'] if 'type' in json_data else 1 # 1.验证码登录,2.密码登录
# test # test
if phone == '18896812809' and code == '1234': if phone == '18068402080' and code == '1234':
test_agent_info = AgentAccount.query.filter_by(id=1).first() test_agent_info = AgentAccount.query.filter_by(id=4).first()
g.user = test_agent_info g.user = test_agent_info
data['token'] = test_agent_info.access_token data['token'] = test_agent_info.access_token
data['user_name'] = test_agent_info.user_name data['user_name'] = test_agent_info.user_name
......
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