aa
This commit is contained in:
@@ -2693,6 +2693,13 @@ func UpdateSkuExinfoMap(ctx *jxcontext.Context, nameIDs []int, imgWaterMark stri
|
||||
EndAt: toTimeP,
|
||||
}
|
||||
dao.WrapAddIDCULDEntity(skuEx, ctx.GetUserName())
|
||||
if imgWaterMark != "" {
|
||||
if skuNames, err := dao.GetSkuNames(db, []int{nameID}, nil, "", false); err == nil {
|
||||
if ImgMix := jxutils.MixWatermarkImg(imgWaterMark, skuNames[0].Img, &fromTimeP, &toTimeP); ImgMix != "" {
|
||||
skuEx.ImgWatermarkMix = ImgMix
|
||||
}
|
||||
}
|
||||
}
|
||||
skuExs, _ := dao.GetSkuExinfos(db, []int{nameID}, []int{vendorID}, "", utils.ZeroTimeValue, utils.ZeroTimeValue)
|
||||
if len(skuExs) > 0 {
|
||||
skuEx2 := skuExs[0]
|
||||
|
||||
Reference in New Issue
Block a user