renyupeng 1 년 전
부모
커밋
0d6da63fd6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      utils/PromoterInfoWebHook.py

+ 2 - 2
utils/PromoterInfoWebHook.py

@@ -37,7 +37,7 @@ def webhook_get_promoter():
     rep = json.loads(request.data)
     promoterId = rep["promoterId"]
     media_id = rep["mediaId"]
-    if media_id == 2 or media_id is None:
+    if media_id == '2' or media_id is None:
         cookie = cookie_update.get_cookie_handler()[0]
         phone_num = cookie_update.get_cookie_handler()[1]
         roll = ReturnPromoterInfoSpider().PromoterInfoSpiderHandler(promoterId, cookie)
@@ -104,7 +104,7 @@ def webhook_get_promoter():
         promoterId = rep["promoterId"]
         cookie = douyin_cookie_update.get_cookie_handler()[0]
         roll = SpiderDouyinHeader().DouyinHandler(promoterId, cookie)
-        print(roll,'--------roll-------')
+        print(roll, '--------roll-------')
         return roll