refactor(migrate):重构数据迁移脚本

This commit is contained in:
zhengxinonly
2021-07-22 15:55:54 +08:00
parent 3f74011c98
commit 86f07817b1
11 changed files with 521 additions and 247 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ class Login(Resource):
if user is None:
return fail_api(msg="不存在的用户")
if user.enable is 0:
if user.enable == 0:
return fail_api(msg="用户被暂停使用")
if user.validate_password(req.password):