|
|
@@ -92,6 +92,10 @@ class AreaValidate extends BaseValidate
|
|
|
$where[]=['name','=',$value];
|
|
|
if(isset($data['id'])){
|
|
|
$where[]=['id','<>',$data['id']];
|
|
|
+ $areas = SpecialArea::findOrEmpty($data['id']);
|
|
|
+ if($areas->isEmpty()){
|
|
|
+ return '传入的信息有误!';
|
|
|
+ }
|
|
|
}
|
|
|
$area = SpecialArea::where($where)->findOrEmpty();
|
|
|
if(!$area->isEmpty()) {
|