diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 80f6e5901..c25ab1817 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1844,8 +1844,10 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { thingIDmap := make(map[int64]string) for _, v := range things { - vendorThingIDs = append(vendorThingIDs, utils.Str2Int64(v.VendorThingID)) - thingIDmap[utils.Str2Int64(v.VendorThingID)] = utils.Int64ToStr(v.ThingID) + if v.VendorThingID != "" { + vendorThingIDs = append(vendorThingIDs, utils.Str2Int64(v.VendorThingID)) + thingIDmap[utils.Str2Int64(v.VendorThingID)] = utils.Int64ToStr(v.ThingID) + } } task := tasksch.NewParallelTask("uuuuu", tasksch.NewParallelConfig().SetIsContinueWhenError(true), ctx,