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

Commit 48310771 by renqing122

文本改动

parent 483df019
......@@ -167,7 +167,7 @@ def get_image_size(imageName):
# documentId获取文本内容
@uploadDownload.route('/getFileContent', methods=['POST'])
@uploadDownload.route('/getFileContent', methods=['Post'])
def getFileContent():
return_dict = {'return_code': '200', 'return_info': '处理成功', 'result': False}
try:
......@@ -195,18 +195,17 @@ def getFileContent():
# documentId获取表格内容
@uploadDownload.route('/getExcelContent', methods=['POST'])
@uploadDownload.route('/getExcelContent', methods=['Post'])
def getExcelContent():
return_dict = {'return_code': '200', 'return_info': '处理成功', 'result': False}
try:
get_Data = request.get_data()
get_Data = json.loads(get_Data)
data = request.get_json(silent=True)
except Exception as e:
return_dict['return_code'] = '201'
return_dict['return_info'] = '请求参数有误'
return json.dumps(return_dict, ensure_ascii=False)
documentId = get_Data.get('documentId')
documentId = data['documentId']
result = mongodbApi.findOne(collectionTest, {"documentId": documentId})
# 判断是否查询到结果
......
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