mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2025-04-17 13:23:24 +00:00
docs: add a note
This commit is contained in:
parent
154fb27895
commit
48151fec8f
10
README.md
10
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.
|
||||

|
||||
|
||||
## 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>
|
||||
|
6
main.go
6
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{
|
||||
|
Loading…
Reference in New Issue
Block a user