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

Commit 02975be6 by renqing122

获取模板BUG修复

parent 3d8ff6a8
......@@ -333,14 +333,13 @@ def getOneTemplate():
return json.dumps(return_dict, ensure_ascii=False)
templateId = get_Data.get('templateId', None)
creatorId = get_Data.get('creatorId', None)
if templateId is None or creatorId is None:
if templateId is None:
return_dict['return_code'] = '201'
return_dict['return_info'] = '请求参数有误'
return json.dumps(return_dict, ensure_ascii=False)
result = mongodbApi.findOneTemplate(collectionTemplate, {"templateId": templateId, "creatorId": creatorId})
result = mongodbApi.findOneTemplate(collectionTemplate, {"templateId": templateId})
if result is None:
return_dict['return_code'] = '201'
......
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