新增了错别字字典2

This commit is contained in:
2024-11-29 13:53:13 +08:00
parent 495fc39c94
commit 700da7ca03
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -169,6 +169,7 @@ func (r *BaseErrorWord) OperationErrorWord(c *gin.Context) {
questions, err := questionDao.GetQuestionListByWord(baseErrorWord.WordOld)
if err == nil && len(questions) <= 0 {
responses.Ok(c)
return
}
// 开始事务
@@ -202,7 +203,6 @@ func (r *BaseErrorWord) OperationErrorWord(c *gin.Context) {
err = questionDao.EditQuestionById(tx, question.QuestionId, datas)
if err != nil {
tx.Rollback()
responses.FailWithMessage(err.Error(), c)
return
}