mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-09-23 12:33:48 +08:00
修复接口重构后的相关代码
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
package com.github.binarywang.demo.spring.handler;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.github.binarywang.demo.spring.builder.TextBuilder;
|
||||
import com.github.binarywang.demo.spring.service.BaseWxService;
|
||||
|
||||
import me.chanjar.weixin.common.exception.WxErrorException;
|
||||
import me.chanjar.weixin.common.session.WxSessionManager;
|
||||
import me.chanjar.weixin.mp.api.WxMpService;
|
||||
@@ -12,6 +9,8 @@ import me.chanjar.weixin.mp.bean.WxMpXmlMessage;
|
||||
import me.chanjar.weixin.mp.bean.WxMpXmlOutMessage;
|
||||
import me.chanjar.weixin.mp.bean.result.WxMpUser;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Binary Wang
|
||||
@@ -28,7 +27,7 @@ public abstract class SubscribeHandler extends AbstractHandler {
|
||||
BaseWxService weixinService = (BaseWxService) wxMpService;
|
||||
|
||||
// 获取微信用户基本信息
|
||||
WxMpUser userWxInfo = weixinService.userInfo(wxMessage.getFromUserName(), null);
|
||||
WxMpUser userWxInfo = weixinService.getUserService().userInfo(wxMessage.getFromUserName(), null);
|
||||
|
||||
if (userWxInfo != null) {
|
||||
// TODO 可以添加关注用户到本地
|
||||
|
Reference in New Issue
Block a user