新增了错别字字典2
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user