docs: add a note

This commit is contained in:
Vincent Young 2023-02-24 21:37:01 +08:00
parent 154fb27895
commit 48151fec8f
2 changed files with 9 additions and 7 deletions

View File

@ -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.<br>

View File

@ -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{