Commit 33b0d3c3 by dong

fix20221202

parent 073f6e78
......@@ -620,11 +620,8 @@ def add_project():
cooperation_way = req_dic['cooperation_way']
other_source = req_dic['other_source']
remark = req_dic['remark']
if not all([project_name, investor_name, investor_district, project_type,
investment_volume, thread_people, thread_people_unity,
thread_people_mobile, thread_progress, investment_volume1,
thread_source, cooperation_way, remark]):
return jsonify(code=RET.NODATA, msg='无有效数据!')
if not all([project_name, investor_district, project_type]):
return jsonify(code=RET.NODATA, msg='项目名称,投资方所在地,项目类型不可为空!')
upload_time = datetime.now().strftime("%Y/%m/%d")
time_strf = datetime.now().strftime("%Y%m%d")
......
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