|
@@ -72,7 +72,9 @@ class ApiService{
|
|
|
|
|
|
if(count($area) > 0){
|
|
|
preg_match_all('/[0-9]+/', $area[0]->areaid, $matches);
|
|
|
- $data['areaid'] = $params['xjdw'].($matches[0] + 1);
|
|
|
+ if(isset($matches[0][0])){
|
|
|
+ $data['areaid'] = $params['xjdw'].($matches[0][0] + 1);
|
|
|
+ }
|
|
|
}else{
|
|
|
$data['areaid'] = $params['xjdw'].'1';
|
|
|
}
|