xjc 6 months ago
parent
commit
5d7012bb72
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/manage/controls.py

+ 2 - 4
src/manage/controls.py

@@ -1005,10 +1005,8 @@ def get_wanzhu_consult_list(**kwargs):
     for item in data:
         user_id = item["user_id"]
         userinfo = get_user_info(user_id)
-        
-        if userinfo:
-            item["user_code"] = userinfo.get("usercode")
-            item["phone"] 	  = userinfo.get("phone")
+        item["user_code"] = userinfo.get("usercode")
+        item["phone"] 	  = userinfo.get("phone")
 
 
     #分页