qiniu_file_url

Brightcells 8 ans auparavant
Parent
Commettre
ac03876ce1
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      utils/qiniucdn.py

+ 2 - 0
utils/qiniucdn.py

@@ -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)