Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

删除照片成功了,但是总是提示报错 #80

Open
sym134 opened this issue Feb 5, 2021 · 3 comments
Open

删除照片成功了,但是总是提示报错 #80

sym134 opened this issue Feb 5, 2021 · 3 comments

Comments

@sym134
Copy link

sym134 commented Feb 5, 2021

照片是删除成功了,但一直报错

laravel7

版本0.10.3

调用方式
$disk = \Storage::disk('qiniu'); $res = $disk->delete($img_list); var_dump($res);

报错
Argument 1 passed to zgldh\\QiniuStorage\\QiniuAdapter::logQiniuError() must be an instance of Qiniu\\Http\\Error, array given, called in /www/wwwroot/我的项目/vendor/zgldh/qiniu-laravel-storage/src/QiniuAdapter.php on line 341

@zgldh
Copy link
Owner

zgldh commented Feb 5, 2021

qiniu/php-sdk 版本多少呢? 他们版本管控有些问题。
我建议你用 zgldh/qiniu-laravel-storage:v0.10.2 这样能锁定 qiniu/php-sdk:7.2.7 试试

@zgldh
Copy link
Owner

zgldh commented Mar 1, 2021

#77

@qingdi
Copy link

qingdi commented Nov 10, 2021

如果是这个版本
qiniu/php-sdk (v7.4.1)
zgldh/qiniu-laravel-storage (v0.10.3)
修改 zgldh/src/QiniuAdapter.php delete方法
list ($ret, $error) = $bucketMgr->delete($this->bucket, $path);

也可以用作者推荐的
zgldh/qiniu-laravel-storage:v0.10.2
qiniu/php-sdk:7.2.7
这个是没问题的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants