From e17cbe5f72f1758bd08e70d1f07aeae1882e8640 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Tue, 28 Mar 2023 17:10:25 +0800 Subject: [PATCH] 1 --- business/partner/purchase/tiktok_store/store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/business/partner/purchase/tiktok_store/store.go b/business/partner/purchase/tiktok_store/store.go index 4af6ca3b6..3164a7e01 100644 --- a/business/partner/purchase/tiktok_store/store.go +++ b/business/partner/purchase/tiktok_store/store.go @@ -284,6 +284,7 @@ func (P *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin errList = errlist.New() timeStr = "" tempFenceID string + createFenceID string FreightTemplate = &model.FreightTemplate{ StoreID: storeID, } @@ -366,7 +367,7 @@ func (P *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin tempFenceID = fenceID } } - if err := BindFenceByStore(storeInfo.VendorOrgCode, utils.Str2Int64(storeInfo.VendorStoreID), []string{tempFenceID}); err != nil { + if err := BindFenceByStore(storeInfo.VendorOrgCode, utils.Str2Int64(storeInfo.VendorStoreID), []string{utils.Int2Str(storeID)}); err != nil { globals.SugarLogger.Debug("门店(%d) 绑定电子围栏:%s失败:%v", storeID, tempFenceID, err) errList.AddErr(fmt.Errorf("门店(%d) 绑定电子围栏:%s失败:%v", storeID, tempFenceID, err)) }