Ver Fonte

MOD:用户权限修改

cxyu há 3 anos atrás
pai
commit
e7ecd3f6ef
2 ficheiros alterados com 2 adições e 1 exclusões
  1. 1 1
      data_manage/operate.py
  2. 1 0
      model/UserAuthUtils.py

+ 1 - 1
data_manage/operate.py

@@ -90,7 +90,7 @@ def get_channel(arg):
     for _ in rsp.json()['data']:
         channel_list.append((_['id'], _['nickName']))
         channel_dict[_['id']] = _['nickName']
-    if user_id in super_auth():
+    if user_id in super_auth() and not pitcher_id:
         return channel_list[:100]
     select_id = user_id
     # 通过pitcher_id,来添加

+ 1 - 0
model/UserAuthUtils.py

@@ -44,6 +44,7 @@ def super_auth():
     user_list = []
     for _ in rsp.json()['data']:
         user_list.append(_['userId'])
+    return user_list
 
 
 if __name__ == '__main__':