fix: 移除检查
This commit is contained in:
parent
d20a124e14
commit
e7f90a304b
@ -402,11 +402,6 @@ func UpdateCompetitiveReportStatus(ctx *gin.Context) {
|
||||
userInfo := login.GetUserInfoFromC(ctx)
|
||||
newCtx := NewCtxWithUserInfo(ctx)
|
||||
|
||||
// 判断 work_action 是否为 1(确认)或 6(阅读)
|
||||
if req.WorkAction != 1 && req.WorkAction != 6 {
|
||||
service.Error(ctx, errors.New("非法操作"))
|
||||
return
|
||||
}
|
||||
// 当 WorkAction = 1(确认)时,ConfirmStatus 必须为 1(通过)、2(驳回)或 3(失败)
|
||||
// 当 WorkAction = 6(阅读)时,不需要 ConfirmStatus
|
||||
if req.WorkAction == 1 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user