|
|
@@ -36,6 +36,9 @@ class Upsource extends Model
|
|
|
if(!empty($post["title"])){
|
|
|
$where[]=["title","like","%{$post["title"]}%"];
|
|
|
}
|
|
|
+ if(!empty($post["type"])){
|
|
|
+ $where[]=["type","=",$post["type"]];
|
|
|
+ }
|
|
|
$totalCount = $this->where($where)->count();
|
|
|
$data=null;
|
|
|
if($totalCount>0){
|
|
|
@@ -50,6 +53,9 @@ class Upsource extends Model
|
|
|
}
|
|
|
}
|
|
|
$data = empty($data)?[]:$data;
|
|
|
+ foreach($data as $k=>$v){
|
|
|
+ $data[$k]["time"] = date("Y-m-d H:i:s",$v["time"]);
|
|
|
+ }
|
|
|
return ["list" => $data, "pageSize" => $post["pageSize"],"page"=>$post["page"],"totalCount"=>$totalCount];
|
|
|
}
|
|
|
|