diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 7331484bc..789bca5f4 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1836,6 +1836,9 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { for i := 0; i < len(things)/50+1; i += 50 { var idList []*jdapi.SkuIdEntity for j := i; j < 50*k; j++ { + if j == len(things)-1 { + break + } idList = append(idList, &jdapi.SkuIdEntity{ OutSkuId: utils.Int64ToStr(things[j].ThingID), })