Commit 63c728f4 by dong

fix20230111

parent e609a14f
...@@ -772,6 +772,10 @@ def upload_project_data1(): ...@@ -772,6 +772,10 @@ def upload_project_data1():
# 上传的文件 # 上传的文件
file = request.files['file'] file = request.files['file']
file_name = file.filename
if not file_name.startswith('线索库'):
return jsonify(code=RET.DBERR, msg="请使用线索库指定文件格式上传!")
upload_time = datetime.now().strftime("%Y/%m/%d") upload_time = datetime.now().strftime("%Y/%m/%d")
time_strf = datetime.now().strftime("%Y%m%d") time_strf = datetime.now().strftime("%Y%m%d")
...@@ -989,7 +993,7 @@ def distribute_project(): ...@@ -989,7 +993,7 @@ def distribute_project():
db.session.add(new_project) db.session.add(new_project)
db.session.commit() db.session.commit()
time1 = datetime.now().strftime("%Y-%m-%d %H:%M:%S") time1 = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
write_dynamic(user_name, project_id, '分发至 {} 对接库'.format(district), time1) write_dynamic(user_name, new_project.id, '分发至 {} 对接库'.format(district), time1)
district_list1.append(district) district_list1.append(district)
......
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