xjc 7 月之前
父節點
當前提交
cf8255cf6e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/manage/controls.py

+ 1 - 1
src/manage/controls.py

@@ -540,7 +540,7 @@ def get_list_info(cls,**kwargs):
                     item["match_name"] = match["name"] if match else ""
                     item["openid"] = user["openid"]
                     item["player_type"] = user["player_type"]
-                    item["phone"] = user["phone"]
+                    item["phone"] = user.get('phone', '')
         if model_name == "PlayerRecord":
             for item in data:
                 user = cm.UserInfo.objects.filter(id=item["user_id"]).first()