windingwind / zotero-pdf-translate

Translate PDF, EPub, webpage, metadata, annotations, notes to the target language. Support 20+ translate services.
GNU Affero General Public License v3.0
7.56k stars 355 forks source link

[Bug] 小牛高校版请求超时 #1007

Open SomeZeroK opened 5 days ago

SomeZeroK commented 5 days ago

Is there an existing issue for this?

Have you checked the FAQ (https://github.com/windingwind/zotero-pdf-translate/issues/6)?

Are you using the latest Zotero and the latest plugin?

Environment

Describe the bug

使用高校版的小牛翻译API时,出现请求超时问题:Error: Request timed out。 · 接口地址: https://trans.neu.edu.cn/niutrans/textTranslation?apikey=apikey的值(可在右上角个人中心查看) · 请求方式: POST · 传参方式: application/json

· 请求参数: 名称 类型 是否必选 实例值 描述 from String 是 zh 源语语种缩写 to String 是 en 目标语语种缩写 src_text String 是 你好 原文内容

· 返回结果: { "code": 200, "msg": "成功", "data": [ { "sentences": [ { "data": "Hello", "contrastSourceText": "你好", "paragraphOrder": 0, "order": 0, "uuid": , "historyResult": null, "len": 0, "sourceLanguageAbbreviation": "zh", "targetLanguageAbbreviation": "en" } ], "order": 0 } ] }

1731830554325

Debug Output

点击设置,填写对应密钥,修改api接口,不填写账户信息(高校版无此信息)

Anything else?

No response

zhimaerfan commented 1 day ago

hello, NEUer. I'm also from NEU, I've given them advice before to add support for college NiuTrans, does yours ever work properly?