|
@@ -1154,6 +1154,9 @@ public class WxLoginService implements IWxLoginService {
|
|
//解析json
|
|
//解析json
|
|
JSONObject jsonObject = (JSONObject) JSONObject.parse(resultString);
|
|
JSONObject jsonObject = (JSONObject) JSONObject.parse(resultString);
|
|
String access_token = String.valueOf(jsonObject.get("access_token"));
|
|
String access_token = String.valueOf(jsonObject.get("access_token"));
|
|
|
|
+ if(Validator.isEmpty(access_token)||access_token.equals("null")){
|
|
|
|
+ throw new CustomException( String.valueOf(jsonObject.get("errmsg ")));
|
|
|
|
+ }
|
|
String openId = String.valueOf(jsonObject.get("openid"));
|
|
String openId = String.valueOf(jsonObject.get("openid"));
|
|
|
|
|
|
String userInfoParam = String.format(gzh_wxUserInfoParam, access_token, openId);
|
|
String userInfoParam = String.format(gzh_wxUserInfoParam, access_token, openId);
|