优化冗余输出
This commit is contained in:
parent
e946cf0c37
commit
fe6b149f06
@ -85,7 +85,6 @@ def register(request):
|
||||
error_message = str(e) # 获取异常信息
|
||||
|
||||
if success:
|
||||
print(f"用户{username}注册成功")
|
||||
return JsonResponse({'success': True, 'message': "注册成功"})
|
||||
else:
|
||||
if "Duplicate entry" in error_message:
|
||||
|
Loading…
Reference in New Issue
Block a user