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

使用有道翻译经常出现{}然后就一直没有翻译了 #61

Closed
mushsoooup opened this issue Jan 6, 2020 · 6 comments
Closed

Comments

@mushsoooup
Copy link

No description provided.

@luojunyuan
Copy link
Contributor

luojunyuan commented Jan 6, 2020

这应该是因为有道QPS限制,或者是有道给同一ip限制了翻译使用量的原因。不信可以切一个wifi试试立马就能用了。可以 config/config.json 中有道关掉

    {
      "enable": false,
      "external": true,
      "jsFile": "config\\hjdictApi.js",
      "name": "有道"
    },

@mushsoooup
Copy link
Author

这应该是因为有道QPS限制,或者是有道给同一ip限制了翻译使用量的原因。不信可以切一个wifi试试立马就能用了。可以 config/config.json 中有道关掉

    {
      "enable": false,
      "external": true,
      "jsFile": "config\\hjdictApi.js",
      "name": "有道"
    },

但是每次重启游戏就会重新恢复,如果没重启等多久都一样

@tinyAdapter
Copy link
Member

我发现了个bug……为啥有道给的jsFile是沪江的😂

@tinyAdapter
Copy link
Member

这应该是因为有道QPS限制,或者是有道给同一ip限制了翻译使用量的原因。不信可以切一个wifi试试立马就能用了。可以 config/config.json 中有道关掉

    {
      "enable": false,
      "external": true,
      "jsFile": "config\\hjdictApi.js",
      "name": "有道"
    },

但是每次重启游戏就会重新恢复,如果没重启等多久都一样

沪江估计最近加了单个session的访问限制,以前是没有的,所以我没加刷新session的代码(像有道API那样的),加上应该就好了

@luojunyuan
Copy link
Contributor

luojunyuan commented Jan 7, 2020

我发现了个bug……为啥有道给的jsFile是沪江的😂

真的绝了!用了几个月才发现,照你说的改好了~,应该可以了,我pr了

复制上来都没看清楚,老瞎了😂

@luojunyuan
Copy link
Contributor

luojunyuan commented Jan 7, 2020

@GasaiMaple 你先把jsFile改成youdaoApi.js就能用有道啦

    {
      "enable": true,
      "external": true,
      "jsFile": "config\\youdaoApi.js",
      "name": "有道"
    },

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