Skip to content

最新版的SDK 怎么设置区域啊zone,返回incorrect region, please use up-z2.qiniup.com #398

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

Closed
codkeep opened this issue Dec 8, 2022 · 1 comment

Comments

@codkeep
Copy link

codkeep commented Dec 8, 2022

incorrect region, please use up-z2.qiniup.com

@lihsai0
Copy link
Collaborator

lihsai0 commented Dec 9, 2022

参考这个例子:

// 指定 zone 上传
// 参考文档:https://developer.qiniu.com/kodo/manual/1671/region-endpoint
$zone = Zone::zonez0(); // 华东:z0,华北:z1,华南:z2,北美:na0,东南亚:as0
$config = new Config($zone);

您需要使用:

$zone = Zone::zonez2();

@bachue bachue closed this as completed Dec 9, 2022
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