feat:浦江优化
This commit is contained in:
1 parent
da549b19aa
commit
7ae8d3e14b
7 files changed
+77
-8
No files matched your search
+3
-3
@@ -149,7 +149,7 @@ public class HardApiController {
|
||||
|
||||
@PostMapping("/create-order")
|
||||
@Operation(summary = "创建订单")
|
||||
@Idempotent(expireTime = 10, info = "正在创建订单中,请勿重复操作")
|
||||
@Idempotent(expireTime = 60, delKey = true, info = "正在创建订单中,请勿重复操作")
|
||||
public R<Long> createOrder(@Valid @RequestBody HardCreateOrderDto dto) {
|
||||
// 处理商品类型
|
||||
if (ObjectUtil.isNotEmpty(dto.getList())) {
|
||||
@@ -167,7 +167,7 @@ public class HardApiController {
|
||||
|
||||
@PostMapping("/create-hard-qr-code-order")
|
||||
@Operation(summary = "创建设备二维码扫一扫订单")
|
||||
@Idempotent(expireTime = 10, info = "正在创建订单中,请勿重复操作")
|
||||
@Idempotent(expireTime = 60, delKey = true, info = "正在创建订单中,请勿重复操作")
|
||||
public R<HardCreateHardQrCodeScanOrderVo> createHardQrCodeScanOrder(@Valid @RequestBody HardCreateOrderDto dto) {
|
||||
// 处理商品类型
|
||||
if (ObjectUtil.isNotEmpty(dto.getList())) {
|
||||
@@ -186,7 +186,7 @@ public class HardApiController {
|
||||
|
||||
@PostMapping("/done-hard-qr-code-order")
|
||||
@Operation(summary = "用户确认设备二维码扫一扫订单")
|
||||
@Idempotent(expireTime = 10, info = "订单支付中,请勿重复操作")
|
||||
@Idempotent(expireTime = 60, delKey = true, info = "订单支付中,请勿重复操作")
|
||||
public R<Long> doneHardQrCodeScanOrder(@Validated @RequestBody HardDoneHardQrCodeScanOrderDto body) {
|
||||
PjcloudUser user = SecurityUtils.getUser();
|
||||
hardwareOrderService.doneHardQrCodeScanOrder(body, user);
|
||||
|
||||
+1
-1
@@ -225,7 +225,7 @@ public class HardOrderController {
|
||||
|
||||
@Operation(summary = "app创建订单扫一扫", description = "app创建订单扫一扫")
|
||||
@PostMapping("/app/create-order-scan-qrcode")
|
||||
@Idempotent(expireTime = 5, info = "正在创建订单中,请勿重复操作")
|
||||
@Idempotent(expireTime = 60, delKey = true, info = "正在创建订单中,请勿重复操作")
|
||||
public R<Long> appCreateOrderScancode(@Validated @RequestBody HardAppCreateOrderScancode body) {
|
||||
PjcloudUser user = SecurityUtils.getUser();
|
||||
HardAppCreateOrderDto dto = HardAppCreateOrderDto.builder()
|
||||
|
||||
Reference in new issue
Block a user