|
@@ -59,10 +59,10 @@ def webhook_get_promoter():
|
|
|
print(cookie,'----------cookie--------------')
|
|
|
phone_num = int(random_item[1])
|
|
|
print(phone_num,'------phone_num-------')
|
|
|
- roll = ReturnPromoterInfoSpider().PromoterInfoSpiderHandler(promoterId, cookie)
|
|
|
- print(roll, '-----111-----{promoterId}'.format(promoterId=promoterId))
|
|
|
- if json.loads(roll).__contains__("result"):
|
|
|
- if json.loads(roll)["result"] == 109:
|
|
|
+ results = ReturnPromoterInfoSpider().PromoterInfoSpiderHandler(promoterId, cookie)
|
|
|
+ print(results, '-----results-----{promoterId}'.format(promoterId=promoterId))
|
|
|
+ if json.loads(results).__contains__("result"):
|
|
|
+ if json.loads(results)["result"] == 109:
|
|
|
r.zrem('kuaishou_shop_click_token', random_item[0])
|
|
|
retry_item = cookie_update.r.zrange('kuaishou_shop_click_token', 0, -1, withscores=True)
|
|
|
print(retry_item[0][0], '-----cookie-----')
|
|
@@ -123,8 +123,8 @@ def webhook_get_promoter():
|
|
|
p4.start()
|
|
|
p5.start()
|
|
|
r.zrem('kuaishou_shop_click_token', random_item[0])
|
|
|
- print(roll, '--------444---roll1---------{promoterId}'.format(promoterId=promoterId))
|
|
|
- return roll
|
|
|
+ print(results, '--------444---roll1---------{promoterId}'.format(promoterId=promoterId))
|
|
|
+ return results
|
|
|
|
|
|
else:
|
|
|
rep = json.loads(request.data)
|