Compare commits

..
5 Commits
Author SHA1 Message Date
Vincent Yang c678e87631 bump to Go 1.23.2 2024-10-07 19:25:36 -04:00
Vincent Young ac8ec23790 Update translate.go 2024-10-03 16:07:38 -04:00
Vincent Young 9e8c68fc94 Revert "Fix typo. (#143)" (#146)
This reverts commit 1bef182a15.
2024-10-03 16:05:53 -04:00
ryan961 1bef182a15 Fix typo. (#143) 2024-09-18 21:33:11 -04:00
Vincent Yang 74cf2b9845 fix: remove authkey 2024-09-17 19:34:32 -04:00
7 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: '1.22' go-version: '1.23.2'
- name: Install golint - name: Install golint
run: go install golang.org/x/lint/golint@latest run: go install golang.org/x/lint/golint@latest
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
- uses: actions/setup-go@v4 - uses: actions/setup-go@v4
with: with:
go-version: "1.22" go-version: "1.23.2"
- run: bash .cross_compile.sh - run: bash .cross_compile.sh
+1 -1
View File
@@ -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 WORKDIR /go/src/github.com/OwO-Network/DeepLX
COPY . . COPY . .
RUN go get -d -v ./ RUN go get -d -v ./
-1
View File
@@ -8,5 +8,4 @@ services:
- "1188:1188" - "1188:1188"
# environment: # environment:
# - TOKEN=helloworld # - TOKEN=helloworld
# - AUTHKEY=xxxxxxx:fx
# - DL_SESSION=xxxxxx # - DL_SESSION=xxxxxx
+2 -3
View File
@@ -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
} }
+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/OwO-Network/DeepLX module github.com/OwO-Network/DeepLX
go 1.23.1 go 1.23.2
require ( require (
github.com/abadojack/whatlanggo v1.0.1 github.com/abadojack/whatlanggo v1.0.1
+1 -1
View File
@@ -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{