This commit is contained in:
suyl
2021-08-06 10:15:19 +08:00
parent 0a148cdb8a
commit ccc0af75ae
2 changed files with 10 additions and 1 deletions

View File

@@ -475,3 +475,12 @@ func IsOpen(err error) bool {
}
return false
}
func IsExist(err error) bool {
if err == nil {
return true
} else if strings.Contains(err.Error(), "门店不存在") {
return false
}
return false
}