From c14956703d7ee56470f365bc21ee5f321b0fff17 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Tue, 10 Jan 2023 14:06:08 +0800 Subject: [PATCH] 1 --- business/partner/purchase/tiktok_store/waybill.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/business/partner/purchase/tiktok_store/waybill.go b/business/partner/purchase/tiktok_store/waybill.go index 6a6a5799a..4de8a15ef 100644 --- a/business/partner/purchase/tiktok_store/waybill.go +++ b/business/partner/purchase/tiktok_store/waybill.go @@ -89,16 +89,17 @@ func SetStoreAutoCallRider(vendorOrgCode, opType string, storeID int64) error { } //批量查询自动呼叫运力配置 -func GetStoreAutoCallRiderInfo(vendorOrgCode string, storeIDs []int64) (autoCallInfos map[int64]*superm_getStoreAutoCallRiderInfo_response.AutoCallInfo, err error) { +func GetStoreAutoCallRiderInfo(vendorOrgCode string, storeIDs []int64) (map[int64]*superm_getStoreAutoCallRiderInfo_response.AutoCallInfo, error) { if len(storeIDs) == 0 { return nil, errors.New("门店ID为空,请检查") } errList := errlist.ErrList{} + tAutoCallInfos := make(map[int64]*superm_getStoreAutoCallRiderInfo_response.AutoCallInfo, 0) for _, i := range storeIDs { if autoCallInfo, err := getAPI(vendorOrgCode, 0, "").GetStoreAutoCallRiderInfo(i); err != nil { errList.AddErr(err) } else { - autoCallInfos[i] = &superm_getStoreAutoCallRiderInfo_response.AutoCallInfo{ + tAutoCallInfos[i] = &superm_getStoreAutoCallRiderInfo_response.AutoCallInfo{ ServiceStatus: autoCallInfo.ServiceStatus, ServiceType: autoCallInfo.ServiceType, DelayTime: autoCallInfo.DelayTime, @@ -108,5 +109,5 @@ func GetStoreAutoCallRiderInfo(vendorOrgCode string, storeIDs []int64) (autoCall if errList.GetErrListAsOne() != nil { return nil, errList.GetErrListAsOne() } - return autoCallInfos, nil + return tAutoCallInfos, nil }