mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-09-03 13:18:28 +08:00
debug close
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user