renyupeng 1 year ago
parent
commit
1a82fc15d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/PromoterInfoWebHook.py

+ 1 - 1
utils/PromoterInfoWebHook.py

@@ -36,7 +36,7 @@ def api_root():
 def webhook_get_promoter():
     rep = json.loads(request.data)
     promoterId = rep["promoterId"]
-    if rep["mediaId"] == 2:
+    if rep["mediaId"] == 2 or rep["mediaId"] is None:
         cookie = cookie_update.get_cookie_handler()[0]
         phone_num = cookie_update.get_cookie_handler()[1]
         roll = ReturnPromoterInfoSpider().PromoterInfoSpiderHandler(promoterId, cookie)