@@ -40,4 +40,6 @@ def upload_file_path(path, key=None, mime_type='application/octet-stream', bucke |
||
40 | 40 |
|
41 | 41 |
|
42 | 42 |
def qiniu_file_url(key, bucket): |
43 |
+ if not key: |
|
44 |
+ return '' |
|
43 | 45 |
return '{}/{}'.format(QINIU['buckets'][bucket], key) |