feat:重复申请的问题
This commit is contained in:
1 parent
bc87852922
commit
da3be48ef0
1 file changed
+2
+2
@@ -53,6 +53,7 @@ public class WalletRechargeApplyController {
|
||||
|
||||
@PostMapping("/save-topup")
|
||||
@Operation(summary = "新增充值")
|
||||
@Idempotent(expireTime = 3, info = "正在充值中,请勿重复操作")
|
||||
public R comparePageJoin(@RequestBody WalletRechargeSaveTopupDto dto) {
|
||||
walletRechargeApplyService.saveTopup(dto);
|
||||
return R.ok();
|
||||
@@ -68,6 +69,7 @@ public class WalletRechargeApplyController {
|
||||
@SysLog("提交申请")
|
||||
@GetMapping("/apply")
|
||||
@PreAuthorize("@pms.hasPermission('wallet_walletRechargeApply_apply')")
|
||||
@Idempotent(expireTime = 5, info = "正在申请中,请勿重复操作")
|
||||
public R apply(@RequestParam Long id) {
|
||||
walletRechargeApplyService.apply(id);
|
||||
return R.ok(true);
|
||||
|
||||
Reference in new issue
Block a user