From 7f1ca82f5203ac330a0a61507c0f7375d12a6798 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Mon, 10 Oct 2022 13:58:25 +0800 Subject: [PATCH] 1 --- business/partner/purchase/tiktok_store/store.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/business/partner/purchase/tiktok_store/store.go b/business/partner/purchase/tiktok_store/store.go index cdb866e15..294e1327a 100644 --- a/business/partner/purchase/tiktok_store/store.go +++ b/business/partner/purchase/tiktok_store/store.go @@ -130,8 +130,10 @@ func (P *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri } storeIDs += utils.Int64ToStr(v.Store.StoreId) } + globals.SugarLogger.Debug("Success createStore and return storeID=====", resp.ResultList[0].Store.StoreId, utils.Str2Int(storeIDs)) if utils.Str2Int(storeIDs) == 0 { - return "", errors.New(fmt.Sprintf("创建店铺失败原因storeIDs = 0:%v,%v", err, resp.ResultList[0].Msg)) + errList.AddErr(fmt.Errorf("storeIDs=0 %v", err)) + //return "", errors.New(fmt.Sprintf("创建店铺失败原因storeIDs = 0:%v,%v", err, resp.ResultList[0].Msg)) } //创建并绑定运费模板 freightTemplateID, err := CreateFreightTemplate(storeDetail.Store.ID) @@ -255,8 +257,6 @@ func (P *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin globals.SugarLogger.Debug("================mergedStoreStatus", mergedStoreStatus) errList.AddErr(P.UpdateStoreStatus(jxcontext.AdminCtx, storeInfo.VendorOrgCode, storeID, storeInfo.VendorStoreID, mergedStoreStatus)) } - //更新电子围栏 - //TODO 需增加 更新运费模板、电子围栏 _, err3 := api.EditStore(params) if err3 != nil {