debug close

This commit is contained in:
damonyuan 2024-11-13 22:09:03 +08:00
parent 2dc0e11d32
commit 9fff5d623e
2 changed files with 1 additions and 8 deletions

View File

@ -2,7 +2,6 @@ package com.mdd.front.controller;
import com.mdd.common.aop.NotLogin;
import com.mdd.common.core.AjaxResult;
import com.mdd.common.util.RedisUtils;
import com.mdd.front.service.IWechatService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@ -28,8 +27,6 @@ public class WechatController {
@GetMapping("/jsConfig")
@ApiOperation("微信jsConfig")
public AjaxResult<Object> jsConfig(@Validated @NotEmpty() @RequestParam("url") String url) throws Exception {
url = url + "pages/login/login?scene=login&=";
RedisUtils.set("urlurlurlurl", url);
Map<String, Object> map = iWechatService.jsConfig(url);
return AjaxResult.success(map);
}

View File

@ -170,14 +170,11 @@ public class LoginServiceImpl implements ILoginService {
@Transactional
public LoginTokenVo mnpLogin(String code, Integer terminal) {
try {
RedisUtils.set("mnpLogin111111", "mnpLoginmnpLoginmnpLogi111111nmnpLogin");
WxMaService wxMaService = WxMnpDriver.mnp();
WxMaJscode2SessionResult sessionResult = wxMaService.getUserService().getSessionInfo(code);
RedisUtils.set("mnpLogin", "mnpLoginmnpLoginmnpLoginmnpLogin");
String openId = sessionResult.getOpenid();
String uniId = sessionResult.getUnionid();
String unionId = uniId == null ? "0" : uniId;
RedisUtils.set("mnpLogin2222", "uniId:" + uniId + "; openId: " + openId);
return this.__wxLoginHandle(openId, unionId, "", "", terminal);
} catch (WxErrorException e) {
@ -199,9 +196,8 @@ public class LoginServiceImpl implements ILoginService {
WxMpService wxMpService = WxMnpDriver.oa();
WxOAuth2AccessToken wxOAuth2AccessToken = wxMpService.getOAuth2Service().getAccessToken(code);
String uniId = wxOAuth2AccessToken.getUnionId();
String openId = wxOAuth2AccessToken.getOpenId();
String openId = wxOAuth2AccessToken.getOpenId();
RedisUtils.set("officeLogin", "uniId:" + uniId + "; openId: " + openId);
System.out.println("uniId:" + uniId);
System.out.println("openId:" + openId);