Przeglądaj źródła

修正代理平台新增角色传参错误

zhuojiaxuan 2 tygodni temu
rodzic
commit
cea8e21a98
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      AdminController/AgentRoleController.py

+ 1 - 1
AdminController/AgentRoleController.py

@@ -150,7 +150,7 @@ class AgentRoleView(View):
 
         try:
             role = AgentRole.objects.create(**data_dict)
-            return response.json(0, {'rid': role.rid},  "角色创建成功")
+            return response.json(0, {'rid': role.rid})
         except Exception as e:
             return response.json(500,  f"角色创建失败: {str(e)}")