Kaynağa Gözat

全流程接口

任敬轩 3 ay önce
ebeveyn
işleme
e65aed73b8
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      Modules/Admin/Services/ApiService.php

+ 3 - 1
Modules/Admin/Services/ApiService.php

@@ -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';
             }