合并微信小程序和支付宝小程序登录入口

This commit is contained in:
谭凯凯
2024-09-24 15:01:40 +08:00
committed by Tankaikai
parent 525d753064
commit fbd0ab240c

View File

@@ -112,7 +112,7 @@ public class LoginContoller {
// 2.开发者服务器 登录凭证校验接口 appi + appsecret + code
JSONObject wxResp = WechatUtil.getSessionKeyOrOpenId(code, customAppId, customSecrete);
Integer errCode = wxResp.getInteger("errcode");
log.debug("微信获取openid响应报文{}", wxResp.toJSONString());
log.info("微信获取openid响应报文{}", wxResp.toJSONString());
if (errCode.intValue() != 0) {
return Result.fail("登录失败:" + wxResp.getString("errmsg"));
}