| | |
| | | |
| | | public class MyWXLoginUtil { |
| | | |
| | | public static String WEXIN_APPID = "wx43617e2ed82c5b28"; |
| | | public static String WEXIN_SECRET = "f8a65908fb4681bdd181de70f6ab9a3b"; |
| | | |
| | | static { |
| | | WEXIN_APPID = Constant.systemCommonConfig.getWxGZAppId(); |
| | | WEXIN_SECRET = Constant.systemCommonConfig.getWxGZAppSecret(); |
| | | } |
| | | |
| | | |
| | | public static WeiXinUserParam getWxWYParam(String code) { |
| | | |
| | | WeiXinUserParam weiXinUserParam = WXAppLoginUtil.getWxParam(code, WEXIN_APPID, WEXIN_SECRET); |
| | | public static WeiXinUserParam getWxWYParam(String code, String wxGZAppId, String wxGZAppSecret) { |
| | | WeiXinUserParam weiXinUserParam = WXAppLoginUtil.getWxParam(code, wxGZAppId, wxGZAppSecret); |
| | | return weiXinUserParam; |
| | | } |
| | | |
| | |
| | | return user; |
| | | } |
| | | |
| | | public static WeiXinUser getWeiXinWYUser(String code) { |
| | | WeiXinUserParam param = getWxWYParam(code); |
| | | public static WeiXinUser getWeiXinWYUser(String code, String wxGZAppId, String wxGZAppSecret) { |
| | | WeiXinUserParam param = getWxWYParam(code,wxGZAppId,wxGZAppSecret); |
| | | if (param == null) { |
| | | return null; |
| | | } |