|
|
@@ -1,9 +1,6 @@ |
|
|
|
package me.chanjar.weixin.mp.api.impl; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import com.google.gson.JsonObject; |
|
|
|
|
|
|
|
import me.chanjar.weixin.common.exception.WxErrorException; |
|
|
|
import me.chanjar.weixin.mp.api.WxMpService; |
|
|
|
import me.chanjar.weixin.mp.api.WxMpUserService; |
|
|
@@ -11,6 +8,8 @@ import me.chanjar.weixin.mp.bean.WxMpUserQuery; |
|
|
|
import me.chanjar.weixin.mp.bean.result.WxMpUser; |
|
|
|
import me.chanjar.weixin.mp.bean.result.WxMpUserList; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
|
* Created by Binary Wang on 2016/7/21. |
|
|
|
*/ |
|
|
@@ -31,6 +30,11 @@ public class WxMpUserServiceImpl implements WxMpUserService { |
|
|
|
this.wxMpService.post(url, json.toString()); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public WxMpUser userInfo(String openid) throws WxErrorException { |
|
|
|
return this.userInfo(openid, null); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public WxMpUser userInfo(String openid, String lang) throws WxErrorException { |
|
|
|
String url = API_URL_PREFIX + "/info"; |
|
|
|