Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
69f0afd7
Commit
69f0afd7
authored
Mar 21, 2025
by
wux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug299:处理重复提交的问题
parent
8a48f546
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
MessageLeaveController.java
...controller/admin/messageLeave/MessageLeaveController.java
+2
-0
AppMessageLeaveController.java
...ontroller/app/messageLeave/AppMessageLeaveController.java
+2
-0
AppAuthController.java
.../module/member/controller/app/auth/AppAuthController.java
+1
-1
No files found.
yudao-module-ecw/yudao-module-ecw-impl/src/main/java/cn/iocoder/yudao/module/ecw/controller/admin/messageLeave/MessageLeaveController.java
View file @
69f0afd7
package
cn
.
iocoder
.
yudao
.
module
.
ecw
.
controller
.
admin
.
messageLeave
;
import
cn.iocoder.yudao.framework.idempotent.core.annotation.Idempotent
;
import
cn.iocoder.yudao.framework.security.core.annotations.PreAuthenticated
;
import
cn.iocoder.yudao.framework.web.core.util.WebFrameworkUtils
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -38,6 +39,7 @@ public class MessageLeaveController {
@PostMapping
(
"/create"
)
@ApiOperation
(
"创建留言"
)
@Idempotent
(
timeout
=
5
)
//@PreAuthorize("@ss.hasPermission('ecw:message-leave:create')")
@PreAuthenticated
public
CommonResult
<
Long
>
createMessageLeave
(
@Valid
@RequestBody
MessageLeaveCreateReqVO
createReqVO
)
{
...
...
yudao-module-ecw/yudao-module-ecw-impl/src/main/java/cn/iocoder/yudao/module/ecw/controller/app/messageLeave/AppMessageLeaveController.java
View file @
69f0afd7
...
...
@@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.ecw.controller.app.messageLeave;
import
cn.iocoder.yudao.framework.common.pojo.CommonResult
;
import
cn.iocoder.yudao.framework.common.pojo.PageResult
;
import
cn.iocoder.yudao.framework.excel.util.ExcelUtils
;
import
cn.iocoder.yudao.framework.idempotent.core.annotation.Idempotent
;
import
cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog
;
import
cn.iocoder.yudao.framework.security.core.annotations.PreAuthenticated
;
import
cn.iocoder.yudao.framework.web.core.util.WebFrameworkUtils
;
...
...
@@ -37,6 +38,7 @@ public class AppMessageLeaveController {
@PostMapping
(
"/create"
)
@ApiOperation
(
"创建留言"
)
@Idempotent
(
timeout
=
5
)
//@PreAuthorize("@ss.hasPermission('ecw:message-leave:create')")
@PreAuthenticated
public
CommonResult
<
Long
>
createMessageLeave
(
@Valid
@RequestBody
MessageLeaveCreateReqVO
createReqVO
)
{
...
...
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/controller/app/auth/AppAuthController.java
View file @
69f0afd7
...
...
@@ -52,7 +52,7 @@ public class AppAuthController {
@PostMapping
(
"/reg"
)
@ApiOperation
(
"使用手机注册"
)
@OperateLog
(
enable
=
false
)
// 避免 Post 请求被记录操作日志
@Idempotent
(
timeout
=
5
)
@Idempotent
(
timeout
=
10
)
public
CommonResult
<
AppAuthLoginRespVO
>
reg
(
@RequestBody
@Valid
AppAuthRegReqVO
reqVO
)
{
String
mobileCode
=
reqVO
.
getAreaCode
()
+
StrUtil
.
COLON
+
reqVO
.
getMobile
();
paramValidatorApi
.
validatorMobile
(
mobileCode
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment