Commit dd056caf by hanjixin

Merge branch 'develop' of gitlab.maxrocky.com:hanjixin/MeteorologicalBureau

parents 408aa379 e0578784
......@@ -99,11 +99,16 @@ def create_slider():
@app.route('/api/ctr', methods=['POST'])
def create_ctr():
# data = json.loads(request.json)
print(request.json)
print(request.json['arguments'], len(request.json['arguments']))
# print(data)
result = request.json
print([getBigUnicode(request.json['path'])].extend(request.json['arguments']))
sendMessage('/route',[getBigUnicode(request.json['path']), 0 ,1])
message = [getBigUnicode(request.json['path'])]
if(len(request.json['arguments'])):
for index in range(len(request.json['arguments'])):
message.append(getBigUnicode(request.json['arguments'][index]))
# print(message)
# sendMessage('/route',[getBigUnicode(request.json['path']), 0 ,1])
sendMessage('/route',message)
return jsonify(code=0, message='success', data = request.json)
if __name__ == '__main__':
app.run(host=localIP, port=8900)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment