wangkun 1 سال پیش
والد
کامیت
6e3dfb2a32
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      gongzhonghao/gongzhonghao_author/gongzhonghao1_author.py

+ 1 - 1
gongzhonghao/gongzhonghao_author/gongzhonghao1_author.py

@@ -51,7 +51,7 @@ class GongzhonghaoAuthor1:
     def create_user(cls, log_type, crawler, user_sheet, i, env):
         user_name = user_sheet[i][0]
         wechat_name = user_sheet[i][2]
-        if wechat_name is None:
+        if wechat_name is None or wechat_name.strip() == "" or wechat_name.replace(" ", "") == "":
             wechat_name = user_name
         Common.logger(log_type, crawler).info(f"befor_wechat_name:{type(wechat_name)}, {wechat_name}")
         our_uid = user_sheet[i][5]