From fb44b8721d3eeafb25aa0be082087b946e02718e Mon Sep 17 00:00:00 2001 From: richboo111 Date: Wed, 13 Dec 2023 14:45:49 +0800 Subject: [PATCH] 1 --- platformapi/tiktok_shop/tiktok_api/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformapi/tiktok_shop/tiktok_api/store.go b/platformapi/tiktok_shop/tiktok_api/store.go index d1a2bfd2..d733b453 100644 --- a/platformapi/tiktok_shop/tiktok_api/store.go +++ b/platformapi/tiktok_shop/tiktok_api/store.go @@ -628,7 +628,7 @@ func (a *API) GetStorePackageFee(storeID int64) (int64, error) { return 0, errors.New(result.LogId + ":" + result.SubMsg) } globals.SugarLogger.Debugf("GetStorePackageFee test resullt:%s", utils.Format4Output(result, false)) - if result.Data == nil { + if result.Data.PackageFee == nil || result.Data == nil { return 0, err } else { return result.Data.PackageFee.Amount, nil