wupengfei 2 năm trước cách đây
mục cha
commit
24d2ce6741

+ 1 - 0
application/admin/controller/api/Plugs.php

@@ -93,6 +93,7 @@ class Plugs extends Controller
     {
         if ($this->getUploadType() === 'qiniu') {
             $file = File::instance('qiniu');
+            var_dump(['url' => $file->upload(true), 'token' => $file->buildUploadToken(), 'uptype' => $this->getUploadType()]);
             return ['url' => $file->upload(true), 'token' => $file->buildUploadToken(), 'uptype' => $this->getUploadType()];
         } else {
             return ['url' => '?s=admin/api.plugs/upload', 'token' => uniqid('local_upload_'), 'uptype' => $this->getUploadType()];

+ 0 - 1
vendor/zoujingli/think-library/src/driver/Qiniu.php

@@ -215,7 +215,6 @@ class Qiniu extends File
         $location = $this->base();
         $bucket = self::$config->get('storage_qiniu_bucket');
         $policy = ['returnBody' => '{"uploaded":true,"filename":"$(key)","url":"' . $location . '$(key)"}'];
-        var_dump($policy);
         return $this->getAuth()->uploadToken($bucket, $key, $expires, $policy, true);
     }