Commit bd4ada72 by dong

fix20230201

parent b36085e0
...@@ -801,8 +801,8 @@ def upload_project_data1(): ...@@ -801,8 +801,8 @@ def upload_project_data1():
# 上传的文件 # 上传的文件
file = request.files['file'] file = request.files['file']
file_name = file.filename file_name = file.filename
if not file_name.startswith('线索库'): if file_name[0:3] not in ['线索库', '对接库', '签约库', '开工库']:
return jsonify(code=RET.DBERR, msg="请使用线索库指定文件格式上传!") 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")
......
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