|
@@ -327,7 +327,7 @@ public class WeSqController extends BaseController {
|
|
|
AsyncManager.me().execute(AsyncFactory.recordLogininfor(wxUser.getCOpenid(), Constants.LOGIN_SUCCESS, MessageUtils.message("user.login.success")));
|
|
|
// return R.ok(wxUser);
|
|
|
|
|
|
- return "redirect:" + "https://test.baoxianzhanggui.com/fragrance/#/pages/my/wxLogin" + "?openid=" + openid;
|
|
|
+ return "redirect:" + "https://test.baoxianzhanggui.com/fragrance/#/pages/my/wxLogin" + "?openid=" + openid + "&token=" + token;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -366,18 +366,8 @@ public class WeSqController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("获取公众号网页二维码")
|
|
|
- @GetMapping("/getweQrCode")
|
|
|
- public AjaxResult weiXinLogin1(String openId) {
|
|
|
- QrConfig config = new QrConfig(300, 300);
|
|
|
- // 设置边距,即二维码和背景之间的边距
|
|
|
- config.setMargin(1);
|
|
|
- // 生成二维码到文件,也可以到流
|
|
|
- String code = "https://www.baidu.com?openId=" + openId;
|
|
|
- log.info("code:{}", code);
|
|
|
- String str = IMG_PATH;
|
|
|
- File generate = QrCodeUtil.generate(code, config, FileUtil.file(RuoYiConfig.getUploadPath() + "/code.png"));
|
|
|
-
|
|
|
- MultipartFile multipartFile = FileUploadUtils.getMultipartFile(generate);
|
|
|
- return tbFileService.uploadFile(multipartFile);
|
|
|
+ @GetMapping("/test")
|
|
|
+ public String weiXinLogin1() {
|
|
|
+ return "redirect:" + "https://test.baoxianzhanggui.com/fragrance/#/pages/my/wxLogin" + "?openid=" + 111;
|
|
|
}
|
|
|
}
|