优化4.0离线下载

master
abbeyokgo 5 years ago
parent 6349de9d61
commit 724aa00ba8
  1. 2
      app/utils/offdownload.py

@ -147,7 +147,7 @@ def upload_status(gid,idx,remote_dir,user):
if not remote_dir.endswith('/'):
remote_dir=remote_dir+'/'
remote_path=os.path.join(remote_dir,item['name'])
if not os.path.exists(localpath):
if not os.path.exists(localpath) and down_db.find_one({'_id':item['_id']})['up_status']!='上传成功!':
new_value={}
new_value['up_status']=u'本地文件不存在。检查:{}'.format(localpath)
new_value['status']=-1

Loading…
Cancel
Save