|
@@ -65,7 +65,7 @@ public class TLocationCheckServiceImpl extends ServiceImpl<TLocationCheckMapper,
|
|
|
if (country.equals("中国")) {
|
|
|
containsUserInput = addr.contains(location);
|
|
|
} else {
|
|
|
- containsUserInput = addr.contains(country) || addr.contains(location);
|
|
|
+ containsUserInput = addr.contains(country) || addr.contains(location) || location.contains(addr);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -100,7 +100,7 @@ public class TLocationCheckServiceImpl extends ServiceImpl<TLocationCheckMapper,
|
|
|
if (country.equals("中国")) {
|
|
|
containsUserInput = addr.contains(location);
|
|
|
} else {
|
|
|
- containsUserInput = addr.contains(country) || addr.contains(location);
|
|
|
+ containsUserInput = addr.contains(country) || addr.contains(location) || location.contains(addr);
|
|
|
}
|
|
|
}
|
|
|
|