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

[Bug Report] 已为 LeanCloud Visitors 功能指定 server_url,但仍使用国际版公共 API #345

Closed
Big-Cake-jpg opened this issue Aug 30, 2022 · 5 comments
Assignees

Comments

@Big-Cake-jpg
Copy link
Contributor

Describe the bug
由于 LeanCloud 国际版 API 限制了国内用户请求,因此我在 server_url 中填写了我绑定的 API 域名。但是在 DevTools 中发现 LeanCloud Visitors 走的还是国际版的公共 API。

文档中的示例也是这样填写的

image

无论是我自己的站点还是云游君自己的站点都是一样的情况。

To Reproduce
Steps to reproduce the behavior:

  1. 使用 LeanCloud 国际版
  2. 指定 server_url
  3. 打开站点

Expected behavior
server_url 的值应该正确处理,LeanCloud Visitors 应该正确显示

Screenshots
image
image
image
image

Smartphone (please complete the following information):

  • Device: iPhone 12
  • OS: iOS 16 Public Beta (Latest build)
  • Browser: Safari
  • Version 16 (WebKit 605.1.15)
@YunYouJun
Copy link
Owner

appID 以 -MdYXbMMI 结尾的始终会走国际版,你的应用是否创建于国际版下?

@Big-Cake-jpg
Copy link
Contributor Author

appID 以 -MdYXbMMI 结尾的始终会走国际版,你的应用是否创建于国际版下?

是国际版应用

@YunYouJun
Copy link
Owner

那其实是没有区别的(应该)。

@Big-Cake-jpg
Copy link
Contributor Author

那其实是没有区别的(应该)。

btw 指定了server_url还走国际版公共 API欸,不应该在获取到这个值以后直接用这个吗,这个是已经在 LeanCloud 控制台里绑定的域名

@YunYouJun
Copy link
Owner

这里是故意做了判断逻辑,当以 -MdYXbMMI 结尾,使用国际公共域名。

Emm,可以考虑移除。

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

2 participants