合并微信小程序和支付宝小程序登录入口
This commit is contained in:
@@ -112,7 +112,7 @@ public class LoginContoller {
|
|||||||
// 2.开发者服务器 登录凭证校验接口 appi + appsecret + code
|
// 2.开发者服务器 登录凭证校验接口 appi + appsecret + code
|
||||||
JSONObject wxResp = WechatUtil.getSessionKeyOrOpenId(code, customAppId, customSecrete);
|
JSONObject wxResp = WechatUtil.getSessionKeyOrOpenId(code, customAppId, customSecrete);
|
||||||
Integer errCode = wxResp.getInteger("errcode");
|
Integer errCode = wxResp.getInteger("errcode");
|
||||||
log.debug("微信获取openid响应报文:{}", wxResp.toJSONString());
|
log.info("微信获取openid响应报文:{}", wxResp.toJSONString());
|
||||||
if (errCode.intValue() != 0) {
|
if (errCode.intValue() != 0) {
|
||||||
return Result.fail("登录失败:" + wxResp.getString("errmsg"));
|
return Result.fail("登录失败:" + wxResp.getString("errmsg"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user