Skip to content

Commit 9d0c9d0

Browse files
author
zhukai
committed
feat: 升级3.2版本
1 parent efaf4e9 commit 9d0c9d0

File tree

7 files changed

+36
-23
lines changed

7 files changed

+36
-23
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
## 后续计划
3131

3232
- [ ] 任务、账号存储支持MySQL
33+
- [ ] settings设置
3334

3435
## 获取方式
3536

@@ -40,7 +41,7 @@
4041
加入我们即可获得
4142

4243
- midjourney-proxy的最新版本
43-
- [管理后台](https://github.com/litter-coder/midjourney-proxy-admin)
44+
- 内嵌 [管理后台](https://github.com/litter-coder/midjourney-proxy-admin)
4445
- [微信机器人最新版本](https://github.com/litter-coder/wechat-ai)
4546
- 及时维护,出问题优先修复
4647
- 您的意见和建议会被我们重点采纳

docs/api.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ CustomZoom的prompt需要设置`--ar` 和 `--zoom`(1到2之间),例如: `Cat -
9797
## 4. `/mj/submit/describe` 图生文
9898
```json
9999
{
100-
// 图片的base64字符串
101-
"base64": "data:image/png;base64,xxx"
100+
// 图片的base64字符串
101+
"base64": "data:image/png;base64,xxx"
102102
}
103103
```
104104

@@ -121,7 +121,7 @@ CustomZoom的prompt需要设置`--ar` 和 `--zoom`(1到2之间),例如: `Cat -
121121
## 5. `/mj/submit/shorten` prompt分析
122122
```json
123123
{
124-
"prompt": "️appdash appdash, in the style of expert draftsmanship, commission for, ethereal, dreamlike quality, dadaistic, toonami"
124+
"prompt": "️appdash appdash, in the style of expert draftsmanship, commission for, ethereal, dreamlike quality, dadaistic, toonami"
125125
}
126126
```
127127

@@ -155,7 +155,11 @@ CustomZoom的prompt需要设置`--ar` 和 `--zoom`(1到2之间),例如: `Cat -
155155
```
156156

157157
## 6. 获取任务图片的seed
158+
158159
绘图任务执行后,不会设置seed,如需获取seed,需要执行 `/mj/task/{id}/image-seed`
160+
161+
⚠️ 注意: 必须配置账号的Midjourney Bot私信ID,否则无法调用
162+
159163
- code=1: 获取成功,result为图片对应的seed
160164
```json
161165
{
@@ -191,4 +195,4 @@ POST application/json
191195
},
192196
"buttons": []
193197
}
194-
```
198+
```

docs/bot-me.png

402 KB
Loading

docs/config.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ mj:
3636
- guild-id: xxx
3737
channel-id: xxx
3838
user-token: xxxx
39+
mj-bot-channel-id: xxxx
3940
session-id: xxxx
4041
user-agent: xxxx
4142
- guild-id: xxx
4243
channel-id: xxx
4344
user-token: xxxx
45+
mj-bot-channel-id: xxxx
4446
session-id: xxxx
4547
user-agent: xxxx
4648
```
@@ -51,6 +53,7 @@ mj:
5153
| guild-id | 是 | discord服务器ID |
5254
| channel-id | 是 | discord频道ID |
5355
| user-token | 是 | discord用户Token |
56+
| mj-bot-channel-id | 否 | Midjourney Bot私信ID |
5457
| session-id | 否 | discord用户SessionId,建议从interactions请求中复制替换掉 |
5558
| user-agent | 否 | 调用discord接口、连接wss时的user-agent,建议从浏览器network复制 |
5659
| enable | 否 | 是否可用,默认true |

docs/discord-params.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@
1616

1717
频道的url里取出 服务器ID、频道ID,后续设置到账号的 `guild-id``channel-id`
1818
![Guild Channel ID](img_9.png)
19+
20+
### 4. 获取MJ私信ID
21+
22+
url里取出 私信ID,后续设置到账号的 `mj-bot-channel-id`
23+
![Midjourney @me](bot-me.png)

docs/start.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,23 @@
22

33
### Docker
44

5-
1. /xxx/xxx/config目录下创建 application.yml(mj配置项)、banned-words.txt(可选,覆盖默认的敏感词文件);参考resources下的文件
5+
1. /xxx/xxx/config目录下创建
66
> 注意: /xxx/xxx是 服务器目录示例,需自行修改
7+
- `app.jar` 项目jar包,https://github.com/litter-coder/midjourney-proxy-plus/releases 下找到最新的jar包,下载并命名为app.jar
8+
- `application.yml` mj配置项,参考 https://github.com/litter-coder/midjourney-proxy-plus/blob/main/resources/application.yml
9+
- `banned-words.txt` 非必须,覆盖默认的敏感词文件,参考 https://github.com/litter-coder/midjourney-proxy-plus/blob/main/resources/banned-words.txt
10+
711
2. 启动容器,映射config目录
8-
```shell
9-
docker run -d --name midjourney-proxy \
10-
-p 8080:8080 \
11-
-v /xxx/xxx/config:/home/spring/config \
12-
novicezk/midjourney-proxy-pilot:3.1
13-
```
14-
3. 访问 `http://ip:port/mj` 查看API文档
15-
4. 在API文档页获取机器码,联系作者获取激活码,激活服务
12+
```shell
13+
docker run -d --name midjourney-proxy-plus \
14+
-p 8080:8080 \
15+
-v /xxx/xxx/config:/home/spring/config \
16+
novicezk/plus-jdk17:latest
17+
```
1618

17-
附: 不映射config目录方式,直接在启动命令中设置参数
18-
```shell
19-
docker run -d --name midjourney-proxy \
20-
-p 8080:8080 \
21-
-e mj.accounts[0].guild-id=xxx \
22-
-e mj.accounts[0].channel-id=xxx \
23-
-e mj.accounts[0].user-token=xxx \
24-
novicezk/midjourney-proxy-pilot:3.1
25-
```
19+
3. 在API文档页 `http://ip:port/doc` 服务激活 -> 获取机器码,联系作者获取激活码,激活服务
20+
4. 访问 `http://ip:port` 查看管理页面,用户名是admin,密码是设置的接口密钥(未设置默认密码是admin)
21+
5. 后续升级版本,直接替换config目录下的app.jar,重启容器即可,不需要重新激活
22+
```shell
23+
docker restart midjourney-proxy-plus
24+
```

resources/application.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ mj:
44
- guild-id: xxx
55
channel-id: xxx
66
user-token: xxx
7+
mj-bot-channel-id: xxx
78
session-id: 9c4055428e13bcbf2248a6b36084c5f3
89
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
910
core-size: 3

0 commit comments

Comments
 (0)