Browse Source

修改发送快照事件接口

locky 2 weeks ago
parent
commit
7aaf388569
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controller/Snapshot.py

+ 2 - 2
controller/Snapshot.py

@@ -155,7 +155,7 @@ class SnapshotView(View):
                     "endpoint": {
                         "scope": {
                             "type": "BearerToken",
-                            "token": "OAuth2.0 bearer token"
+                            "token": access_token
                         },
                         "endpointId": uid
                     },
@@ -173,7 +173,7 @@ class SnapshotView(View):
 
             LOGGER.info('快照异步事件请求: url:{},data:{}'.format(api_uri, payload_json))
             response = requests.post(api_uri, json=payload_json, headers=headers)
-            LOGGER.info('快照异步事件请求响应: {}'.format(response))
+            LOGGER.info('快照异步事件请求响应: {}'.format(response.json()))
 
             return JsonResponse({'res': 'success'})
         except Exception as e: