dever 6 năm trước cách đây
mục cha
commit
639d2717cc
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      src/Qiniu.php

+ 6 - 0
src/Qiniu.php

@@ -87,7 +87,13 @@ class Qiniu
             return;
         }
         
+        if (!$upload['yun']) {
+            return;
+        }
         $config = Dever::db('upload/yun')->one($upload['yun']);
+        if (!$config) {
+            return;
+        }
         $accessKey = $config['appkey'];
         $secretKey = $config['appsecret'];
         $host = $config['host'];