mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2026-12-02 07:17:53 +00:00
Compare commits
4
Commits
v0.9.7
...
ac8ec23790
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac8ec23790 | ||
|
|
9e8c68fc94 | ||
|
|
1bef182a15 | ||
|
|
74cf2b9845 |
@@ -8,5 +8,4 @@ services:
|
||||
- "1188:1188"
|
||||
# environment:
|
||||
# - TOKEN=helloworld
|
||||
# - AUTHKEY=xxxxxxx:fx
|
||||
# - DL_SESSION=xxxxxx
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
* @Author: Vincent Yang
|
||||
* @Date: 2024-04-23 00:39:03
|
||||
* @LastEditors: Vincent Young
|
||||
* @LastEditTime: 2024-09-16 12:02:15
|
||||
* @LastEditors: Vincent Yang
|
||||
* @LastEditTime: 2024-09-17 19:34:32
|
||||
* @FilePath: /DeepLX/config.go
|
||||
* @Telegram: https://t.me/missuo
|
||||
* @GitHub: https://github.com/missuo
|
||||
@@ -22,7 +22,6 @@ type Config struct {
|
||||
IP string
|
||||
Port int
|
||||
Token string
|
||||
AuthKey string
|
||||
DlSession string
|
||||
Proxy string
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ func TranslateByDeepLX(sourceLang string, targetLang string, translateText strin
|
||||
if err != nil {
|
||||
return DeepLXTranslationResult{
|
||||
Code: http.StatusServiceUnavailable,
|
||||
Message: "Uknown error",
|
||||
Message: "Unknown error",
|
||||
}, nil
|
||||
}
|
||||
transport := &http.Transport{
|
||||
|
||||
Reference in New Issue
Block a user