mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2024-11-16 11:42:33 +08:00
fix: api host
This commit is contained in:
parent
7b50838f68
commit
a0b110681d
|
@ -103,7 +103,7 @@ func translateByDeepLX(sourceLang string, targetLang string, translateText strin
|
|||
}
|
||||
|
||||
// Preparing the request data for the DeepL API
|
||||
url := "https://api.deepl.com/jsonrpc"
|
||||
url := "https://www2.deepl.com/jsonrpc"
|
||||
id = id + 1
|
||||
postData := initDeepLXData(sourceLang, targetLang)
|
||||
text := Text{
|
||||
|
@ -264,7 +264,7 @@ func translateByDeepLXPro(sourceLang string, targetLang string, translateText st
|
|||
}
|
||||
|
||||
// Preparing the request data for the DeepL API
|
||||
url := "https://www2.deepl.com/jsonrpc"
|
||||
url := "https://api.deepl.com/jsonrpc"
|
||||
id = id + 1
|
||||
postData := initDeepLXData(sourceLang, targetLang)
|
||||
text := Text{
|
||||
|
|
Loading…
Reference in New Issue
Block a user