YunYouJun / hexo-theme-yun

☁️ A fast & light & lovely theme for Hexo. 一个对可爱自以为是的 Hexo 主题。
https://yun.yunyoujun.cn
MIT License
1.38k stars 167 forks source link

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

Closed Big-Cake-jpg closed 1 year ago

Big-Cake-jpg commented 1 year ago

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):

YunYouJun commented 1 year ago

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

Big-Cake-jpg commented 1 year ago

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

是国际版应用

YunYouJun commented 1 year ago

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

Big-Cake-jpg commented 1 year ago

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

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

YunYouJun commented 1 year ago

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

Emm,可以考虑移除。