فهرست منبع

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

zhuojiaxuan 2 هفته پیش
والد
کامیت
cea8e21a98
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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)}")