From b30bdfb587e5e5d6494d26a674b87e8799cfaaaf Mon Sep 17 00:00:00 2001 From: richboo111 Date: Mon, 24 Oct 2022 18:27:00 +0800 Subject: [PATCH] 1 --- business/partner/purchase/tiktok_store/store.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/business/partner/purchase/tiktok_store/store.go b/business/partner/purchase/tiktok_store/store.go index 6735dedca..e8ce40c85 100644 --- a/business/partner/purchase/tiktok_store/store.go +++ b/business/partner/purchase/tiktok_store/store.go @@ -121,6 +121,7 @@ func (P *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri StoreList: lists, } if resp, err := a.BatchCreateStore(ShopBatchCreateStoreParam); err != nil { + globals.SugarLogger.Debug("BatchCreateStore wrong on :%v", ShopBatchCreateStoreParam, err) return "", err } else { if len(resp.ResultList) == 0 { @@ -128,12 +129,14 @@ func (P *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri } var storeIDs string for k, v := range resp.ResultList { + globals.SugarLogger.Debug("jhsadfgjhafjgh") if k != len(resp.ResultList) { + globals.SugarLogger.Debug("defafafaggh") storeIDs = utils.Int64ToStr(v.Store.StoreId) + "," } storeIDs = utils.Int64ToStr(v.Store.StoreId) } - //storeIDs = utils.Int64ToStr(resp.ResultList[0].Store.StoreId) + globals.SugarLogger.Debug("storeIDs==============", storeIDs, utils.Int64ToStr(resp.ResultList[0].Store.StoreId)) if utils.Str2Int(storeIDs) == 0 { return "", errors.New(fmt.Sprintf("创建店铺失败,storeIDs = 0:%v,%v", err, resp.ResultList[0].Msg)) }