소스 검색

修改代码

fuyu 6 년 전
부모
커밋
adc998e89a
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      application/inter/controller/Reciveremote.php

+ 3 - 3
application/inter/controller/Reciveremote.php

@@ -244,10 +244,10 @@ class Reciveremote extends Base
                             if(empty($v)){
                                 break;
                             }
-                            $queryWhere.= " and `e`.`exam_class` in (?)";
-                            $ex = implode('\',\'',$v);
+                            $queryWhere.= " and `e`.`exam_class` in ?";
+                            $ex = implode(',', $v);
                             // $where .= " and e.exam_class in ('".$ex."')";
-                            $options[] = "'".$ex."'";
+                            $options[] = "(".$ex.")";
                             // var_dump($v);
                             break;
                         case 'name':