renyupeng před 1 rokem
rodič
revize
0d0c3e2f2a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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])
                     r.zrem('kuaishou_shop_click_token', random_item[0])
 
 
                     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)
-                    retry_cookie = retry_item[0].decode('utf-8')
+                    retry_cookie = retry_item[0][0].decode('utf-8')
                     rolls = ReturnPromoterInfoSpider().PromoterInfoSpiderHandler(promoterId, retry_cookie)
                     rolls = ReturnPromoterInfoSpider().PromoterInfoSpiderHandler(promoterId, retry_cookie)
                     p1 = Process(target=PromoterInfoSpider().PromoterInfoSpiderHandler, args=(promoterId, retry_cookie))
                     p1 = Process(target=PromoterInfoSpider().PromoterInfoSpiderHandler, args=(promoterId, retry_cookie))
                     p2 = Process(target=PromoterFansInfo().PromoterFansInfoHandler, args=(promoterId, retry_cookie))
                     p2 = Process(target=PromoterFansInfo().PromoterFansInfoHandler, args=(promoterId, retry_cookie))