增加了题库不允许重复的业务逻辑14
This commit is contained in:
parent
6e662c0cb0
commit
c292fe4d33
@ -378,6 +378,7 @@ func (r *QuestionQaService) PutQuestionQa(qaId int64, req requests.PutQuestionQa
|
||||
}
|
||||
|
||||
// 是否允许重复
|
||||
if req.Action == 2 {
|
||||
if len(req.RepeatQaId) > 0 {
|
||||
var repeatQaId []string
|
||||
for _, item := range req.RepeatQaId {
|
||||
@ -391,6 +392,7 @@ func (r *QuestionQaService) PutQuestionQa(qaId int64, req requests.PutQuestionQa
|
||||
} else {
|
||||
questionQaData["repeat_qa_id"] = ""
|
||||
}
|
||||
}
|
||||
|
||||
// 背景图
|
||||
image := utils.RemoveOssDomain(req.Image)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user