mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2026-12-01 14:57:52 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c678e87631 | ||
|
|
ac8ec23790 | ||
|
|
9e8c68fc94 | ||
|
|
1bef182a15 | ||
|
|
74cf2b9845 |
@@ -15,7 +15,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.22'
|
||||
go-version: '1.23.2'
|
||||
|
||||
- name: Install golint
|
||||
run: go install golang.org/x/lint/golint@latest
|
||||
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "1.22"
|
||||
go-version: "1.23.2"
|
||||
|
||||
- run: bash .cross_compile.sh
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM golang:1.23.1 AS builder
|
||||
FROM golang:1.23.2 AS builder
|
||||
WORKDIR /go/src/github.com/OwO-Network/DeepLX
|
||||
COPY . .
|
||||
RUN go get -d -v ./
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module github.com/OwO-Network/DeepLX
|
||||
|
||||
go 1.23.1
|
||||
go 1.23.2
|
||||
|
||||
require (
|
||||
github.com/abadojack/whatlanggo v1.0.1
|
||||
|
||||
@@ -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