From 75a9876f1da1b02011b8d22f51a6f91064aa3baa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 1 Mar 2023 17:32:41 +0800 Subject: [PATCH] 1 --- business/model/dao/dao_order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index 3bd880e18..e8efed825 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -1850,7 +1850,7 @@ func GetAddressRiderInfo(db *DaoDB, address string, randNumber int64) (*CourierI return nil, err } - if courier.CourierName == "" || courier.CourierMobile == "" { + if courier.CourierName == "" || courier.CourierMobile == "" || len(courier.CourierMobile) != 11 { info, err := GetAddressRiderInfo(db, address, randNumber+1) if err != nil { return nil, err