微信消息推送回调接口参数调整,通过消息推送服务器配置
This commit is contained in:
parent
99ec09fe04
commit
5e2e83bc24
@ -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);
|
||||
}
|
||||
|
||||
@ -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<>();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user