Browse Source

已经被删除的消息可以不需要翻译

xiexiaoyuan 2 years ago
parent
commit
d0ffb9f322
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/day_new.go

+ 1 - 1
services/day_new.go

@@ -246,7 +246,7 @@ func DayNewTranslateContent() (err error) {
 		}
 	}()
 	//查询待翻译的内容列表
-	condition := ` and (content_en = "" or content_en is null)`
+	condition := ` and (content_en = "" or content_en is null) and is_delete = 0`
 	var pars []interface{}
 	list, err := day_new.GetWeworkMsgByConditionLimit(condition, pars, 2000) //默认最多查询2000条
 	if err != nil {