renyupeng 11 月之前
父節點
當前提交
09f9d163c4
共有 1 個文件被更改,包括 0 次插入6 次删除
  1. 0 6
      utils/PromoterInfoWebHook.py

+ 0 - 6
utils/PromoterInfoWebHook.py

@@ -30,8 +30,6 @@ from utils.UpLoadFile import UpLoadFile
 from utils.cookie_update import cookie_update
 from utils.cookie_update import cookie_update
 from utils.douyin_cookie_update import douyin_cookie_update
 from utils.douyin_cookie_update import douyin_cookie_update
 
 
-from utils.send_feishu_msg import SendFeiShuMsg
-
 app = Flask(__name__)
 app = Flask(__name__)
 
 
 
 
@@ -51,7 +49,6 @@ def webhook_get_promoter():
             random_member = r.zrange('kuaishou_shop_click_token', 0, -1, withscores=True)
             random_member = r.zrange('kuaishou_shop_click_token', 0, -1, withscores=True)
             random_item = random.choice(random_member)
             random_item = random.choice(random_member)
             cookie = random_item[0].decode('utf-8')
             cookie = random_item[0].decode('utf-8')
-            phone_num = int(random_item[1])
             roll = ReturnPromoterInfoSpider().PromoterInfoSpiderHandler(promoterId, cookie)
             roll = ReturnPromoterInfoSpider().PromoterInfoSpiderHandler(promoterId, cookie)
             print(roll, '-----000-----{promoterId}'.format(promoterId=promoterId))
             print(roll, '-----000-----{promoterId}'.format(promoterId=promoterId))
             return roll
             return roll
@@ -64,12 +61,9 @@ def webhook_get_promoter():
             phone_num = int(random_item[1])
             phone_num = int(random_item[1])
             roll = ReturnPromoterInfoSpider().PromoterInfoSpiderHandler(promoterId, cookie)
             roll = ReturnPromoterInfoSpider().PromoterInfoSpiderHandler(promoterId, cookie)
             print(roll, '-----111-----{promoterId}'.format(promoterId=promoterId))
             print(roll, '-----111-----{promoterId}'.format(promoterId=promoterId))
-
             if json.loads(roll).__contains__("result"):
             if json.loads(roll).__contains__("result"):
                 if json.loads(roll)["result"] == 109:
                 if json.loads(roll)["result"] == 109:
                     r.zrem('kuaishou_shop_click_token', random_item[0])
                     r.zrem('kuaishou_shop_click_token', random_item[0])
-                    SendFeiShuMsg.send_cookie_robot_msg(
-                        "cookie 永久失效 轻更新cookie 唯一电话为{phone_num}".format(phone_num=phone_num))
                     retry_item = cookie_update.r.zrange('kuaishou_shop_click_token', 0, -1, withscores=True)
                     retry_item = cookie_update.r.zrange('kuaishou_shop_click_token', 0, -1, withscores=True)
                     print(retry_item[0][0], '-----cookie-----')
                     print(retry_item[0][0], '-----cookie-----')
                     retry_cookie = retry_item[0][0].decode('utf-8')
                     retry_cookie = retry_item[0][0].decode('utf-8')