|
@@ -215,6 +215,7 @@ 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);
|
|
|
}
|
|
|
|