店铺信息
This commit is contained in:
@@ -44,6 +44,7 @@ public class AuthorizationController {
|
||||
|
||||
/**
|
||||
* 验证码获取
|
||||
*
|
||||
* @return 验证码信息
|
||||
*/
|
||||
@GetMapping("captcha")
|
||||
@@ -53,6 +54,7 @@ public class AuthorizationController {
|
||||
|
||||
/**
|
||||
* 商户登录
|
||||
*
|
||||
* @param loginDTO 登录参数
|
||||
* @return token信息
|
||||
*/
|
||||
@@ -79,6 +81,7 @@ public class AuthorizationController {
|
||||
RabbitPublisher rabbitPublisher;
|
||||
@Resource
|
||||
ShopTableService shopTableService;
|
||||
|
||||
@GetMapping("test")
|
||||
public CzgResult<?> login(HttpServletRequest request, HttpServletResponse response) throws IOException {
|
||||
// shopTableService.createQrCode(1L, 1, response, request);
|
||||
@@ -87,7 +90,7 @@ public class AuthorizationController {
|
||||
// rabbitPublisher.sendOrderPrintMsg("552");
|
||||
// printMqListener.orderPrint("1");
|
||||
// return CzgResult.success(Map.of("token", StpKit.USER.getShopId()));
|
||||
return CzgResult.success( shopInfoService.getById(1));
|
||||
return CzgResult.success(shopInfoService.getById(1));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -97,7 +100,9 @@ public class AuthorizationController {
|
||||
@GetMapping("/userInfo")
|
||||
public CzgResult<Map<String, Object>> getUserInfo() {
|
||||
String account = StpKit.USER.getAccount();
|
||||
ShopInfo shopInfo = shopInfoService.queryChain().select(ShopInfo::getId, ShopInfo::getShopName).one();
|
||||
ShopInfo shopInfo = shopInfoService.queryChain()
|
||||
.select(ShopInfo::getId, ShopInfo::getShopName)
|
||||
.eq(ShopInfo::getId, StpKit.USER.getShopId()).one();
|
||||
if (account.contains("@")) {
|
||||
account = account.split("@")[1];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user