wangkun 2 年之前
父节点
当前提交
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]