From 739d8c260d05eabd537ead30df93811765cc4b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 19 Apr 2023 18:43:21 +0800 Subject: [PATCH] 1 --- business/jxcallback/auto_delivery/auto_delivery.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/business/jxcallback/auto_delivery/auto_delivery.go b/business/jxcallback/auto_delivery/auto_delivery.go index 984366ad4..44732079f 100644 --- a/business/jxcallback/auto_delivery/auto_delivery.go +++ b/business/jxcallback/auto_delivery/auto_delivery.go @@ -107,11 +107,9 @@ func AutoSettingFakeDelivery() { riderKey := "" if strings.Contains(v.ConsigneeAddress, "重庆") || strings.Contains(v.ConsigneeAddress, "上海") || strings.Contains(v.ConsigneeAddress, "北京") { riderKey = strings.Split(v.ConsigneeAddress, "市")[0] - } else { + } else if strings.Contains(v.ConsigneeAddress, "省") { riderKey = strings.Split(v.ConsigneeAddress, "省")[0] - } - - if riderKey == "" { + } else { storeDetail, _ := dao.GetStoreDetail(db, v.JxStoreID, 0, "") if strings.Contains(storeDetail.Address, "重庆") || strings.Contains(storeDetail.Address, "上海") || strings.Contains(storeDetail.Address, "北京") { riderKey = strings.Split(storeDetail.Address, "市")[0]