1
This commit is contained in:
@@ -3088,10 +3088,11 @@ func UpdateVendorImg(ctx *jxcontext.Context, storeId int, imgWaterMark string, v
|
||||
dao.CreateEntity(db, skuEx)
|
||||
|
||||
param := map[string]interface{}{}
|
||||
qiNiuImg := ""
|
||||
ImgMix := ""
|
||||
if imgWaterMark != "" {
|
||||
qiNiuImg := jxutils.UploadQiNiuImg(v.PictureList[0])
|
||||
if ImgMix := jxutils.MixWatermarkImg2(imgWaterMark, qiNiuImg, &fromTimeP, &toTimeP); ImgMix != "" {
|
||||
globals.SugarLogger.Debugf("---ImgMix := %s", ImgMix)
|
||||
qiNiuImg = jxutils.UploadQiNiuImg(v.PictureList[0])
|
||||
if ImgMix = jxutils.MixWatermarkImg2(imgWaterMark, qiNiuImg, &fromTimeP, &toTimeP); ImgMix != "" {
|
||||
picture := make([]string, 0, len(v.PictureList))
|
||||
picture = append(picture, ImgMix)
|
||||
if len(v.PictureList) > 1 {
|
||||
@@ -3105,7 +3106,10 @@ func UpdateVendorImg(ctx *jxcontext.Context, storeId int, imgWaterMark string, v
|
||||
}
|
||||
globals.SugarLogger.Debugf("---param := %s", utils.Format4Output(param, false))
|
||||
api.RetailInitData(utils.GetUUID(), storeDetail.VendorStoreID, v.AppFoodCode, param)
|
||||
|
||||
globals.SugarLogger.Debugf("------qiNiuImg := %s", qiNiuImg)
|
||||
globals.SugarLogger.Debugf("------ImgMix := %s", ImgMix)
|
||||
jxutils.DeleteExportContent(strings.Split(qiNiuImg, "/")[2])
|
||||
jxutils.DeleteExportContent(strings.Split(ImgMix, "/")[2])
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user