|
@@ -57,7 +57,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
|
|
|
|
|
@Override
|
|
|
public AjaxResult login(LoginDto dto) throws ServerException {
|
|
|
- JSONObject res = JSON.parseObject(HttpUtils.sendGet("https://api.weixin.qq.com/sns/jscode2session?appid=" + env.getProperty("wx.appid") + "&secret=" + env.getProperty("wx.appSecret") + "&js_code=" + dto.getCode() + "&grant_type=authorization_code", null));
|
|
|
+ JSONObject res = JSON.parseObject(HttpUtils.sendGet("https://api.weixin.qq.com:4430/sns/jscode2session?appid=" + env.getProperty("wx.appid") + "&secret=" + env.getProperty("wx.appSecret") + "&js_code=" + dto.getCode() + "&grant_type=authorization_code", null));
|
|
|
if (StringUtils.isNotEmpty(res.getString("errmsg"))) {
|
|
|
return AjaxResult.error("获取openid失败");
|
|
|
}
|