From 0d79a23ad743c875605aa2890f34aec95c1603a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=AD=E5=87=AF=E5=87=AF?= Date: Mon, 21 Oct 2024 15:09:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E9=80=81=E8=AE=A2=E9=98=85=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E5=A2=9E=E5=8A=A0token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ysk/cashier/controller/product/TbPlaceController.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/controller/product/TbPlaceController.java b/eladmin-system/src/main/java/cn/ysk/cashier/controller/product/TbPlaceController.java index e0f24ad0..9c20a6de 100644 --- a/eladmin-system/src/main/java/cn/ysk/cashier/controller/product/TbPlaceController.java +++ b/eladmin-system/src/main/java/cn/ysk/cashier/controller/product/TbPlaceController.java @@ -9,6 +9,7 @@ import cn.ysk.cashier.service.product.TbProductService; import cn.ysk.cashier.service.shop.TbShopTableService; import cn.ysk.cashier.utils.RabbitMsgUtils; import cn.ysk.cashier.utils.RedisUtils; +import com.alibaba.fastjson.JSON; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; @@ -154,8 +155,9 @@ public class TbPlaceController { public ResponseEntity pay(HttpServletRequest request, @Validated @RequestBody PayDTO payDTO) { String token = tokenProvider.getToken(request); payDTO.setToken(token); - String subject = tokenProvider.getClaims(token).getSubject(); - log.error(">>>>>>>>>>>>>>>>>>>>>>>>>>>>subject:{}", subject); + Object o = redisUtils.get("online-token-"+token); + String jsonString = JSON.toJSONString(o); + log.error(">>>>>>>>>>>>>>>>>>>>>>>>>>>>jsonString:{}", jsonString); return ResponseEntity.ok(tbShopTableService.pay(payDTO)); }