lvhao 1 개월 전
부모
커밋
a78266233b
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      core/CoreApp/controllers/Color.php

+ 5 - 0
core/CoreApp/controllers/Color.php

@@ -400,6 +400,7 @@ class Color extends Start_Controller {
 			$state = $this->input->get('state',true);
 			$timetk = $this->input->get('timetk',true);
 			$timetj = $this->input->get('timetj',true);
+			$sid = $this->input->get('sid',true);
 			$timetk = strtotime($timetk);
 			$timetj = strtotime($timetj);
 			$where = "1=1";
@@ -430,6 +431,10 @@ class Color extends Start_Controller {
 			if($timetk && $timetj)
             {
                 $where  .= " and time > '$timetk' and time < '$timetj'";
+            }
+			if($sid)
+            {
+                $where  .= " and id in (".trim($sid,',').") ";
             }
 			//数据排序
             $order_str = "id desc";