소스 검색

异常处理

彭俊 6 년 전
부모
커밋
76b892e5f7
4개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/Http/Model/StBqResult.php
  2. 1 0
      app/Http/Model/StLqResult.php
  3. 1 0
      app/Http/Model/StWqResult.php
  4. 1 0
      app/Http/Model/StZqResult.php

+ 1 - 0
app/Http/Model/StBqResult.php

@@ -286,6 +286,7 @@ class StBqResult extends Model
                 $match_ids[] = $v['id'];
             }
         }
+        if(empty($match_ids)) return Response::success();
 
         $match_ids_str = implode(",", $match_ids);
          // 组装sql

+ 1 - 0
app/Http/Model/StLqResult.php

@@ -286,6 +286,7 @@ class StLqResult extends Model
                 $match_ids[] = $v['id'];
             }
         }
+        if(empty($match_ids)) return Response::success();
 
         $match_ids_str = implode(",", $match_ids);
 

+ 1 - 0
app/Http/Model/StWqResult.php

@@ -301,6 +301,7 @@ class StWqResult extends Model
                 $match_ids[] = $v['id'];
             }
         }
+        if(empty($match_ids)) return Response::success();
 
         $match_ids_str = implode(",", $match_ids);
 

+ 1 - 0
app/Http/Model/StZqResult.php

@@ -353,6 +353,7 @@ class StZqResult extends Model
                 $match_ids[] = $v['id'];
             }
         }
+        if(empty($match_ids)) return Response::success();
 
         $match_ids_str = implode(",", $match_ids);