|  | @@ -30,8 +30,6 @@ from utils.UpLoadFile import UpLoadFile
 | 
	
		
			
				|  |  |  from utils.cookie_update import cookie_update
 | 
	
		
			
				|  |  |  from utils.douyin_cookie_update import douyin_cookie_update
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -from utils.send_feishu_msg import SendFeiShuMsg
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  app = Flask(__name__)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -51,7 +49,6 @@ def webhook_get_promoter():
 | 
	
		
			
				|  |  |              random_member = r.zrange('kuaishou_shop_click_token', 0, -1, withscores=True)
 | 
	
		
			
				|  |  |              random_item = random.choice(random_member)
 | 
	
		
			
				|  |  |              cookie = random_item[0].decode('utf-8')
 | 
	
		
			
				|  |  | -            phone_num = int(random_item[1])
 | 
	
		
			
				|  |  |              roll = ReturnPromoterInfoSpider().PromoterInfoSpiderHandler(promoterId, cookie)
 | 
	
		
			
				|  |  |              print(roll, '-----000-----{promoterId}'.format(promoterId=promoterId))
 | 
	
		
			
				|  |  |              return roll
 | 
	
	
		
			
				|  | @@ -64,12 +61,9 @@ def webhook_get_promoter():
 | 
	
		
			
				|  |  |              phone_num = int(random_item[1])
 | 
	
		
			
				|  |  |              roll = ReturnPromoterInfoSpider().PromoterInfoSpiderHandler(promoterId, cookie)
 | 
	
		
			
				|  |  |              print(roll, '-----111-----{promoterId}'.format(promoterId=promoterId))
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |              if json.loads(roll).__contains__("result"):
 | 
	
		
			
				|  |  |                  if json.loads(roll)["result"] == 109:
 | 
	
		
			
				|  |  |                      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)
 | 
	
		
			
				|  |  |                      print(retry_item[0][0], '-----cookie-----')
 | 
	
		
			
				|  |  |                      retry_cookie = retry_item[0][0].decode('utf-8')
 |