|
@@ -191,11 +191,10 @@ def num_generate():
|
|
|
return success_response(flow_id)
|
|
|
|
|
|
|
|
|
-@app.route('/open/agent/sdkAnalytics', methods=['GET'])
|
|
|
+@app.route('/open/agent/sdkAnalytics', methods=['POST'])
|
|
|
def track_event():
|
|
|
- data = request.args.to_dict()
|
|
|
+ data = request.get_json()
|
|
|
# 存入日志文件
|
|
|
- print('1232')
|
|
|
app.logger.info(json.dumps(data))
|
|
|
|
|
|
return success_response('ok')
|