From 0c90169369e3669ac937e95b201719cdefbf4c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 8 Feb 2021 13:58:38 +0800 Subject: [PATCH] aa --- business/jxstore/tempop/tempop.go | 3 +++ 1 file changed, 3 insertions(+) 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), })