dever 6 年之前
父節點
當前提交
639d2717cc
共有 1 個文件被更改,包括 6 次插入0 次删除
  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'];