From 48151fec8f8367b36638bd6b488123e78ef16e33 Mon Sep 17 00:00:00 2001 From: Vincent Young Date: Fri, 24 Feb 2023 21:37:01 +0800 Subject: [PATCH] docs: add a note --- README.md | 10 ++++++---- main.go | 6 +++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1afffa8..cbf63a4 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ * @Author: Vincent Young * @Date: 2022-10-18 07:32:29 * @LastEditors: Vincent Young - * @LastEditTime: 2023-02-18 19:46:10 + * @LastEditTime: 2023-02-24 21:36:36 * @FilePath: /DeepLX/README.md * @Telegram: https://t.me/missuo * @@ -55,16 +55,16 @@ launchctl start ~/Library/LaunchAgents/me.missuo.deeplx.plist ``` ### Install from AUR - ```bash paru -S deeplx-bin ``` -after install, run +After installation, start the daemon with the following command. ```bash systemctl daemon-reload systemctl enable deeplx + ``` ## Setup on [Bob App](https://bobtranslate.com/) 1. Install [bob-plugin-deeplx](https://github.com/clubxdev/bob-plugin-deeplx) on Bob. @@ -72,9 +72,11 @@ systemctl enable deeplx 2. Setup the API. ![c5c19dd89df6fae1a256d](https://missuo.ru/file/c5c19dd89df6fae1a256d.png) -## Docker Backup for zu1k +## Backup the Docker Image of zu1k ```shell docker run -itd -p 1188:80 missuo/deeplx-bk ``` +**This docker image is not related to this project, as the original author deleted the image, it is only for backup.** + ## Author **DeepL X** © [Vincent Young](https://github.com/missuo) & [Leo Shen](https://github.com/sjlleo), Released under the [MIT](./LICENSE) License.
diff --git a/main.go b/main.go index 45c6018..0fdaa4f 100644 --- a/main.go +++ b/main.go @@ -106,8 +106,8 @@ func main() { r.GET("/", func(c *gin.Context) { c.JSON(200, gin.H{ - "code": 200, - "msg": "DeepL API, Made by sjlleo and missuo. Go to /translate with POST.", + "code": 200, + "message": "DeepL Free API, Made by sjlleo and missuo. Go to /translate with POST. http://github.com/OwO-Network/DeepLX", }) }) @@ -180,7 +180,7 @@ func main() { body, _ := io.ReadAll(resp.Body) res := gjson.ParseBytes(body) // display response - fmt.Println(res) + // fmt.Println(res) if res.Get("error.code").String() == "-32600" { log.Println(res.Get("error").String()) c.JSON(406, gin.H{