|
@@ -42,8 +42,8 @@ public class WeChatUtil {
|
|
|
String result = HttpUtil.get("https://api.weixin.qq.com/sns/oauth2/access_token", paramMap);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(result);
|
|
|
if (jsonObject.containsKey("errcode")) {
|
|
|
- throw new MyException(result);
|
|
|
- //return null;
|
|
|
+ //throw new MyException(result);
|
|
|
+ return null;
|
|
|
}
|
|
|
String openId = jsonObject.get("openid").toString();
|
|
|
return openId;
|