zgldh / qiniu-laravel-storage

Qiniu 云储存 Laravel 5 Storage版
MIT License
521 stars 79 forks source link

删除照片报类型错误 #82

Closed linkang123 closed 2 years ago

linkang123 commented 2 years ago

laravel:8.5.9 zgldh/qiniu-laravel-storage: "0.10.3" 调用delete方法

public function delete($path)
{
    $bucketMgr = $this->getBucketManager();

    $error = $bucketMgr->delete($this->bucket, $path);
    if ($error !== null) {
        $this->logQiniuError($error, $this->bucket . '/' . $path);

        return false;
    } else {
        return true;
    }
}

报类型错误 TypeError In QiniuAdapter.php line 128 : Argument 1 passed to zgldh\QiniuStorage\QiniuAdapter::logQiniuError() must be an instance of Qiniu\Http\Error, array given, called in /home/wwwroot/ydj_seo/vendor/zgldh/qiniu-laravel-storage/src/QiniuAdapter.php on line 341

linkang123 commented 2 years ago

我自己的问题