aa
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rosy.net.cn/jx-callback/business/jxstore/act"
|
|
||||||
"net"
|
"net"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
@@ -1973,28 +1972,26 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
act.RrefreshMtwmVendorAct(jxcontext.AdminCtx)
|
var (
|
||||||
act.RrefreshEbaiVendorAct(jxcontext.AdminCtx)
|
db = dao.GetDB()
|
||||||
//var (
|
skuNames []*model.SkuName
|
||||||
// db = dao.GetDB()
|
id1 []int
|
||||||
// skuNames []*model.SkuName
|
id2 []int
|
||||||
// id1 []int
|
)
|
||||||
// id2 []int
|
sql := `
|
||||||
//)
|
SELECT * FROM sku_name where img like '%origin%' and upc <> '' ORDER BY img
|
||||||
//sql := `
|
`
|
||||||
// SELECT * FROM sku_name where img like '%origin%' and upc <> '' ORDER BY img
|
dao.GetRows(db, &skuNames, sql)
|
||||||
//`
|
for _, skuName := range skuNames {
|
||||||
//dao.GetRows(db, &skuNames, sql)
|
data, _, err := jxutils.DownloadFileByURL(skuName.Img)
|
||||||
//for _, skuName := range skuNames {
|
if len(data) == 0 && err != nil {
|
||||||
// data, _, err := jxutils.DownloadFileByURL("http://image.jxc4.com/1616546694origin549a181bN32f4da48.jpg")
|
id1 = append(id1, skuName.ID)
|
||||||
// if data == nil || err != nil {
|
} else {
|
||||||
// id1 = append(id1, skuName.ID)
|
id2 = append(id2, skuName.ID)
|
||||||
// } else {
|
}
|
||||||
// id2 = append(id2, skuName.ID)
|
}
|
||||||
// }
|
fmt.Println("exeNOimg2 id1", id1)
|
||||||
//}
|
fmt.Println("exeNOimg2 id2", id2)
|
||||||
//fmt.Println("exeNOimg id1", id1)
|
|
||||||
//fmt.Println("exeNOimg id2", id2)
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user