Skip to content

Commit 06e8d31

Browse files
committed
适配: 表情合成@hd 在 v1.2.6 上
Signed-off-by: hd <hdshare@vip.qq.com>
1 parent 5722d59 commit 06e8d31

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

docs/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,14 @@ features:
3434
details: 命令[/rua], 触发[引用消息], 结果[发出摸头GIF]
3535
link: https://github.com/HdShare/WAuxiliary_Plugin/tree/main/plugins/v126/Hd/Avatar-rua
3636

37-
- title: 语录插件@hd
37+
- title: 语录插件@Hd
3838
details: 命令[/q], 触发[引用消息], 结果[发出语录图]
3939
link: https://github.com/HdShare/WAuxiliary_Plugin/tree/main/plugins/v126/Hd/msg-q
4040

41+
- title: 表情合成@Hd
42+
details: 命令[系统表情1+系统表情2], 触发[收到消息], 结果[发出新表情]
43+
link: https://github.com/HdShare/WAuxiliary_Plugin/tree/main/plugins/v126/Hd/EmojiMix
44+
4145
- title: 自动回复@hd
4246
details: 监听收到文本消息时自动回复对应内容
4347
link: https://github.com/HdShare/WAuxiliary_Plugin/tree/main/plugins/old/hd/AutoReply
@@ -58,10 +62,6 @@ features:
5862
details: 需修改API域名,路径,密钥,模型,好友wxid等参数, 监听收到消息时自动聊天
5963
link: https://github.com/HdShare/WAuxiliary_Plugin/tree/main/plugins/old/hd/OpenAiChat
6064

61-
- title: 表情合成@hd
62-
details: 监听收到[系统表情1+系统表情2]时自动合成新表情并发送
63-
link: https://github.com/HdShare/WAuxiliary_Plugin/tree/main/plugins/old/hd/EmojiMix
64-
6565
- title: 进群邀请@hd
6666
details: 监听私聊收到[进群]时自动发送群聊邀请(需修改群聊wxid)
6767
link: https://github.com/HdShare/WAuxiliary_Plugin/tree/main/plugins/old/hd/JoinGroupInvite

plugins/v126/Hd/EmojiMix/info.prop

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name = 表情合成
2+
author = Hd
3+
version = 20250913

plugins/old/hd/EmojiMix/EmojiMix.java renamed to plugins/v126/Hd/EmojiMix/main.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void onHandleMsg(Object msgInfoBean) {
1616
if (emojis.length == 2) {
1717
String emoji1 = emojis[0].trim();
1818
String emoji2 = emojis[1].trim();
19-
String api = "https://api.317ak.com/API/yljk/emo/emo.php?emoji1=" + emoji1 + "&emoji2=" + emoji2;
19+
String api = "https://sbtxqq.com/api/emojimix.php?emoji1=" + emoji1 + "&emoji2=" + emoji2;
2020
get(api, null, new PluginCallBack.HttpCallback() {
2121
public void onSuccess(int respCode, String respContent) {
2222
JSONObject jsonObject = JSON.parseObject(respContent);
@@ -31,16 +31,16 @@ public void onSuccess(File file) {
3131
}
3232

3333
public void onError(Exception e) {
34-
sendText(talker, "[倾梦API]下载异常:" + e.getMessage());
34+
sendText(talker, "[晴天API]下载异常:" + e.getMessage());
3535
}
3636
});
3737
} else {
38-
sendText(talker, "[倾梦API]生成失败:" + JSONPath.eval(jsonObject, "$.text"));
38+
sendText(talker, "[晴天API]生成失败:" + JSONPath.eval(jsonObject, "$.text"));
3939
}
4040
}
4141

4242
public void onError(Exception e) {
43-
sendText(talker, "[倾梦API]生成异常:" + e.getMessage());
43+
sendText(talker, "[晴天API]生成异常:" + e.getMessage());
4444
}
4545
});
4646
}

0 commit comments

Comments
 (0)