jfinal的微信公众号授权信息,域名返回报错,谢谢您




public void userAuthorize() {
    String calbackUrl = PropKit.get("domain") + "/wxa/index";
    String url = SnsAccessTokenApi.getAuthorizeURL(PropKit.get("subsAppId"), calbackUrl, "111", false);
    redirect(url);
}

//下面是配置文件的内容

微信图片_20190312160906.png

下面是报错信息,回调的连接请求的却不是我设置的,日志如下

19-03-12 16:06:24,796 [DEBUG]  at com.hyqfx.course.edu.interceptor.GlobalInterceptor.intercept(GlobalInterceptor.java:24)

 - 请求路径:/wxa/userAuthorize, 请求参数:{}

2019-03-12 16:06:24,804 [DEBUG]  at com.hyqfx.course.edu.interceptor.GlobalInterceptor.intercept(GlobalInterceptor.java:33)

 - 请求返回:未能识别的格式

2019-03-12 16:06:25,641 [DEBUG]  at com.hyqfx.course.edu.interceptor.GlobalInterceptor.intercept(GlobalInterceptor.java:24)

 - 请求路径:/wxa, 请求参数:{"code":["061PndDc2ORINF0HbHBc2kmcDc2PndDe"],"state":["111"]}

2019-03-12 16:06:25,902 [INFO]  at com.hyqfx.course.edu.controller.WxaAuthController.index(WxaAuthController.java:138)

 - snsAccessToken:{"access_token":"19_U6GMKJs5xPGeinDllA7fRgLZQMbPSxHUX9MK52c1Mo2putSLUPukJCLwj8FvP71kiDAwwPzEq6gruHfiFJ98_eWK_3gtlU36Iq9KBjYkz8I","expires_in":7200,"refresh_token":"19_IA7_qlMbnrjaaxccih1O0HtSbCpQIDIpwgw19QKZLHdX11epqUkW277IjSBGZLiRQjqbkEnvgTctfZH6CbtdCvIssI_EcOoHPxnHP7KoDLo","openid":"ovg521Ge2TzOvzuYWNXRcmmWYpjA","scope":"snsapi_userinfo","unionid":"oBC3fsqpDlISZKUoq79JUvzCxoeY"}

2019-03-12 16:06:26,050 [INFO]  at com.hyqfx.course.edu.controller.WxaAuthController.index(WxaAuthController.java:143)

 - apiResult-openId:{"openid":"ovg521Ge2TzOvzuYWNXRcmmWYpjA","nickname":"wei子金","sex":1,"language":"zh_CN","city":"深圳","province":"广东","country":"中国","headimgurl":"http:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/DYAIOgq83epvnkornBYiaF384icKD8oibJRxokYqiblK3pWbMfia4JLVTEdUxRt0TdH1FlBP1hqtrZmTLN1xdFkuB3Q\/132","privilege":[],"unionid":"oBC3fsqpDlISZKUoq79JUvzCxoeY"}

2019-03-12 16:06:26,075 [INFO]  at com.hyqfx.course.edu.controller.WxaAuthController.index(WxaAuthController.java:161)

 - user:{gmt_create:2019-03-12 15:18:13.0, uid:47843276052762624, role:1, open_id:or4nu0KJ_z07V85boF60FEZ1bbgU, phone:13413684988, union_id:oBC3fsqpDlISZKUoq79JUvzCxoeY, nickname:wei子金, oa_open_id:ovg521Ge2TzOvzuYWNXRcmmWYpjA, id:94, avatar:1}

2019-03-12 16:06:26,091 [DEBUG]  at com.hyqfx.course.edu.interceptor.GlobalInterceptor.intercept(GlobalInterceptor.java:33)


微信图片_20190312160911.png

评论区

热门反馈

扫码入社