Merge branch 'tkk' into test

This commit is contained in:
Tankaikai
2024-09-24 15:01:53 +08:00

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"));
}