微信消息推送回调接口参数调整,通过消息推送服务器配置

This commit is contained in:
liyj 2025-09-19 18:16:20 +08:00
parent 63ff212c80
commit 2ebea74b9e
2 changed files with 8 additions and 4 deletions

View File

@ -93,5 +93,5 @@ public interface AccountUserBindConnectService extends IBaseService<AccountUserB
long getAllBindCount(Integer bind_type,String bindTmpl);
boolean bindTmplId(JSONObject jsonObject);
boolean bindTmplId(String jsonObjectStr);
}

View File

@ -5,6 +5,7 @@ import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.suisung.mall.account.mapper.AccountUserBindConnectMapper;
import com.suisung.mall.account.service.AccountUserBaseService;
@ -525,9 +526,12 @@ public class AccountUserBindConnectServiceImpl extends BaseServiceImpl<AccountUs
}
@Override
public boolean bindTmplId(JSONObject jsonObject) {
if (jsonObject == null) {
return false;
public boolean bindTmplId(String jsonObjectStr) {
JSONObject jsonObject= null;
try {
jsonObject= JSONUtil.parseObj(jsonObjectStr);
}catch (RuntimeException e) {
throw new ApiException("非json数据");
}
String openId=jsonObject.getStr("FromUserName");//用户openid
QueryWrapper<AccountUserBindConnect> queryWrapper = new QueryWrapper<>();