This commit is contained in:
suyl
2021-08-06 09:45:03 +08:00
parent 1dcdd12ac1
commit 0a148cdb8a
2 changed files with 15 additions and 5 deletions

View File

@@ -466,3 +466,12 @@ func (a *API) CheckOrder(shopID, receiver_address string, receiver_lng, receiver
})
return result, err
}
func IsOpen(err error) bool {
if err == nil {
return true
} else if strings.Contains(err.Error(), "门店非营业状态") {
return false
}
return false
}