renyupeng 1 rok pred
rodič
commit
0d0c3e2f2a
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      utils/PromoterInfoWebHook.py

+ 1 - 1
utils/PromoterInfoWebHook.py

@@ -85,7 +85,7 @@ def webhook_get_promoter():
                     r.zrem('kuaishou_shop_click_token', random_item[0])
 
                     retry_item = cookie_update.r.zrange('kuaishou_shop_click_token', 0, -1, withscores=True)
-                    retry_cookie = retry_item[0].decode('utf-8')
+                    retry_cookie = retry_item[0][0].decode('utf-8')
                     rolls = ReturnPromoterInfoSpider().PromoterInfoSpiderHandler(promoterId, retry_cookie)
                     p1 = Process(target=PromoterInfoSpider().PromoterInfoSpiderHandler, args=(promoterId, retry_cookie))
                     p2 = Process(target=PromoterFansInfo().PromoterFansInfoHandler, args=(promoterId, retry_cookie))