Przeglądaj źródła

全流程接口

任敬轩 3 miesięcy temu
rodzic
commit
e65aed73b8
1 zmienionych plików z 3 dodań i 1 usunięć
  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';
             }