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