Browse Source

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

zhuojiaxuan 1 week ago
parent
commit
cea8e21a98
1 changed files with 1 additions and 1 deletions
  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)}")