微信消息推送回调接口参数调整,通过消息推送服务器配置
This commit is contained in:
parent
63ff212c80
commit
2ebea74b9e
@ -93,5 +93,5 @@ public interface AccountUserBindConnectService extends IBaseService<AccountUserB
|
|||||||
|
|
||||||
long getAllBindCount(Integer bind_type,String bindTmpl);
|
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.core.util.StrUtil;
|
||||||
import cn.hutool.json.JSONArray;
|
import cn.hutool.json.JSONArray;
|
||||||
import cn.hutool.json.JSONObject;
|
import cn.hutool.json.JSONObject;
|
||||||
|
import cn.hutool.json.JSONUtil;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.suisung.mall.account.mapper.AccountUserBindConnectMapper;
|
import com.suisung.mall.account.mapper.AccountUserBindConnectMapper;
|
||||||
import com.suisung.mall.account.service.AccountUserBaseService;
|
import com.suisung.mall.account.service.AccountUserBaseService;
|
||||||
@ -525,9 +526,12 @@ public class AccountUserBindConnectServiceImpl extends BaseServiceImpl<AccountUs
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean bindTmplId(JSONObject jsonObject) {
|
public boolean bindTmplId(String jsonObjectStr) {
|
||||||
if (jsonObject == null) {
|
JSONObject jsonObject= null;
|
||||||
return false;
|
try {
|
||||||
|
jsonObject= JSONUtil.parseObj(jsonObjectStr);
|
||||||
|
}catch (RuntimeException e) {
|
||||||
|
throw new ApiException("非json数据");
|
||||||
}
|
}
|
||||||
String openId=jsonObject.getStr("FromUserName");//用户openid
|
String openId=jsonObject.getStr("FromUserName");//用户openid
|
||||||
QueryWrapper<AccountUserBindConnect> queryWrapper = new QueryWrapper<>();
|
QueryWrapper<AccountUserBindConnect> queryWrapper = new QueryWrapper<>();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user