测试上传图片后创建

This commit is contained in:
苏尹岚
2020-05-14 11:40:34 +08:00
parent a2813ab3db
commit c306af35bb

View File

@@ -1514,12 +1514,11 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
sqlParams := []interface{}{utils.DefaultTimeValue, utils.DefaultTimeValue, utils.DefaultTimeValue, 102919}
err = dao.GetRows(dao.GetDB(), &skuNames, sql, sqlParams)
for _, v := range skuNames {
for _, vv := range []string{v.Img, v.Img2, v.DescImg} {
if vv == "" {
continue
}
if v.ID == 9619 {
if v.ID == 9619 {
for _, vv := range []string{v.Img, v.Img2, v.DescImg} {
if vv == "" {
continue
}
datar := &model.DataResource{
MainURL: vv,
}