文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit 5666979f by 李梓桢

image后端修改

parent cb7b643f
......@@ -21,7 +21,7 @@ def handle_except(result):
# 获取图片
@image.route("/image/getImage", methods=["POST"])
def get_image():
data = json.loads(request.data)
data = json.loads(request.data.decode('utf-8'))
relation_list = data['relationList']
# relation_list = request.args['relationList']
image = Image.getImage(relation_list)
......@@ -52,7 +52,7 @@ def save_image():
# 获取图层
@image.route("/layer/getLayer", methods=["POST"])
def get_layer():
data = json.loads(request.data)
data = json.loads(request.data.decode('utf-8'))
relation_list = data['relationId']
layer = Image.getLayer(relation_list)
return handle_except(layer)
......
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 to comment