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]