wangkun 2 năm trước cách đây
mục cha
commit
6e3dfb2a32
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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]