debug close
This commit is contained in:
parent
2dc0e11d32
commit
9fff5d623e
|
|
@ -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) {
|
||||
|
|
@ -201,7 +198,6 @@ public class LoginServiceImpl implements ILoginService {
|
|||
String uniId = wxOAuth2AccessToken.getUnionId();
|
||||
String openId = wxOAuth2AccessToken.getOpenId();
|
||||
|
||||
RedisUtils.set("officeLogin", "uniId:" + uniId + "; openId: " + openId);
|
||||
System.out.println("uniId:" + uniId);
|
||||
System.out.println("openId:" + openId);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue