xjc 6 mesi fa
parent
commit
5d7012bb72
1 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  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")
 
 
     #分页