feat(0): [java]-[wechat-ferry-mvn]-新版本适配

1.发送表情接口存在问题,暂时弃用,待修复
2.新增变更文档
This commit is contained in:
chandler 2024-12-23 20:33:51 +08:00
parent f3ac990ecc
commit 8f2d54da90
5 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,8 @@
## v39.3.3
### 2024-12-23
#### ⛰️ Features
- 适配SDK39.3.3版本
- wcf.proto文件部分字段类型修改

View File

@ -16,6 +16,7 @@ public class WxPpWcfSendEmojiMsgReq {
/**
* 资源路径-本地表情路径
* 需要确保图片路径正确建议使用绝对路径使用双斜杠\\
*/
@ApiModelProperty(value = "资源路径-本地表情路径")
private String resourcePath;

View File

@ -16,6 +16,7 @@ public class WxPpWcfSendImageMsgReq {
/**
* 资源路径-本地图片地址
* 需要确保图片路径正确建议使用绝对路径使用双斜杠\\
* `C:/Projs/WeChatRobot/TEQuant.jpeg`
* `https://raw.githubusercontent.com/lich0821/WeChatFerry/master/assets/TEQuant.jpg`
*/

View File

@ -335,6 +335,7 @@ public class WeChatSocketClient {
* @param receiver 消息接收者
* @return 发送结果状态码
*/
@Deprecated
public int sendEmotion(String path, String receiver) {
Wcf.PathMsg pathMsg = Wcf.PathMsg.newBuilder().setPath(path).setReceiver(receiver).build();
Request req = Request.newBuilder().setFuncValue(Functions.FUNC_SEND_EMOTION_VALUE).setFile(pathMsg).build();

View File

@ -385,6 +385,7 @@ public class WeChatDllServiceImpl implements WeChatDllService {
return null;
}
@Deprecated
@Override
public WxPpWcfSendEmojiMsgResp sendEmojiMsg(WxPpWcfSendEmojiMsgReq request) {
int state = wechatSocketClient.sendEmotion(request.getResourcePath(), request.getRecipient());