From c2d86f19fe942d1aa0a3e1e8933d484f950d9f06 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Mon, 31 Oct 2022 17:06:44 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/store.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 923f73a74..5c1030dbf 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -1546,7 +1546,11 @@ func AddStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, vendorID int, vend } } } else if vendorID == model.VendorIDDD { //抖店绑定店铺时 检查并补充创建 - err = tiktok_store.CreateOrUpdateAll(vendorOrgCode, int64(storeMap.StoreID), utils.Str2Int64(storeMap.VendorStoreID)) + globals.SugarLogger.Debugf("vendorID ==============%d", vendorID) + err2 := tiktok_store.CreateOrUpdateAll(vendorOrgCode, int64(storeMap.StoreID), utils.Str2Int64(storeMap.VendorStoreID)) + if err2 != nil { + return nil, err2 + } } storeMapList, err := dao.GetStoresMapList2(db, []int{vendorID}, []int{storeID}, nil, model.StoreStatusAll, model.StoreIsSyncAll, "", "", "", true)