|
@@ -42,7 +42,7 @@ def webhook_get_promoter():
|
|
|
SendFeiShuMsg.send_cookie_robot_msg("cookie 永久失效 轻更新cookie 唯一电话为{phone_num}".format(phone_num=phone_num))
|
|
|
cookie_update.update_cookie_handler(phone_num)
|
|
|
retry_cookie = cookie_update.get_cookie_handler()[0]
|
|
|
- roll = ReturnPromoterInfoSpider().PromoterInfoSpiderHandler(promoterId, retry_cookie)
|
|
|
+ rollback = ReturnPromoterInfoSpider().PromoterInfoSpiderHandler(promoterId, retry_cookie)
|
|
|
p1 = Process(target=PromoterInfoSpider().PromoterInfoSpiderHandler, args=(promoterId, retry_cookie))
|
|
|
p2 = Process(target=PromoterFansInfo().PromoterFansInfoHandler, args=(promoterId, retry_cookie))
|
|
|
p3 = Process(target=PromoterLiveInfoSpider().PromoterLiveInfoSpiderHander, args=(promoterId, retry_cookie))
|
|
@@ -55,13 +55,13 @@ def webhook_get_promoter():
|
|
|
p3.start()
|
|
|
p4.start()
|
|
|
p5.start()
|
|
|
- return roll
|
|
|
+ return rollback
|
|
|
|
|
|
else:
|
|
|
SendFeiShuMsg.send_cookie_robot_msg("cookie 临时失效 唯一电话为{phone_num},临时失效code{code}".format(phone_num=phone_num,code=json.loads(roll)["result"]))
|
|
|
cookie_update.update_temporary_cookie_handler(phone_num)
|
|
|
retry_cookie = cookie_update.get_cookie_handler()[0]
|
|
|
- roll = ReturnPromoterInfoSpider().PromoterInfoSpiderHandler(promoterId, retry_cookie)
|
|
|
+ rolls = ReturnPromoterInfoSpider().PromoterInfoSpiderHandler(promoterId, retry_cookie)
|
|
|
p1 = Process(target=PromoterInfoSpider().PromoterInfoSpiderHandler, args=(promoterId, retry_cookie))
|
|
|
p2 = Process(target=PromoterFansInfo().PromoterFansInfoHandler, args=(promoterId, retry_cookie))
|
|
|
p3 = Process(target=PromoterLiveInfoSpider().PromoterLiveInfoSpiderHander, args=(promoterId, retry_cookie))
|
|
@@ -74,7 +74,7 @@ def webhook_get_promoter():
|
|
|
p3.start()
|
|
|
p4.start()
|
|
|
p5.start()
|
|
|
- return roll
|
|
|
+ return rolls
|
|
|
|
|
|
else:
|
|
|
p1 = Process(target=PromoterInfoSpider().PromoterInfoSpiderHandler, args=(promoterId, cookie))
|