Explorar o código

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

xiexiaoyuan %!s(int64=2) %!d(string=hai) anos
pai
achega
d0ffb9f322
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {