renyupeng il y a 3 ans
Parent
commit
44f310f3a3
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      Apietl/utlis/webHook.py

+ 2 - 1
Apietl/utlis/webHook.py

@@ -19,7 +19,8 @@ def api_root():
 
 @app.route('/webhook/account_report', methods=['POST'])
 def api_webhook_messages():
-    my_info = json.loads(request.param)
+    print(json.loads(request.data))
+    my_info = json.loads(request.data)
     account_id = my_info["account_id"]
     start_date = my_info["start_time"]
     end_date = my_info["end_time"]