|
@@ -71,8 +71,8 @@ func InsertDocinInfos(b []byte) (err error, lastId int64, expectTotal, actualTot
|
|
|
DocSummary: v.Desc,
|
|
|
PreviewImgId: common.InterfaceToStr(v.ProductId),
|
|
|
EncryptionLevel: 0,
|
|
|
- Source: 2, //豆丁
|
|
|
- ProductType: v.Ifcharge + 1, //Ifcharge:是否付费,0:免费,1:收费;ProductType:商品类型:默认:0:全部;1:会员免费;2:精品(付费)
|
|
|
+ Source: 2, //豆丁
|
|
|
+ ProductType: v.Ifcharge + entity.Charge, //Ifcharge:是否付费,0:免费,1:收费;ProductType:商品类型:默认:0:全部;1:会员免费;2:精品(付费)
|
|
|
UpdateDate: date.NowFormat(date.Date_Full_Layout),
|
|
|
})
|
|
|
//elastic
|
|
@@ -91,7 +91,7 @@ func InsertDocinInfos(b []byte) (err error, lastId int64, expectTotal, actualTot
|
|
|
"uploadDate": date.NowFormat(date.Date_Full_Layout),
|
|
|
"viewTimes": v.VisitCount,
|
|
|
"source": 2, //豆丁
|
|
|
- "productType": v.Ifcharge + 1,
|
|
|
+ "productType": v.Ifcharge + entity.Charge,
|
|
|
})
|
|
|
}
|
|
|
if len(docs) > 0 {
|