@@ -27,7 +27,7 @@ class MediaModel extends RelationModel{
...
@@ -27,7 +27,7 @@ class MediaModel extends RelationModel{
$where.=$sort." ".$limit;
$where.=$sort." ".$limit;
$fields=" *,case `status` when 1 then '<font color=green>上线</font>' when 2 then '<font color=red>下线</font>' when 0 then '<font>未知</font>' end as `status` ";
$fields=" *,case `status` when 1 then '<font color=green>上线</font>' when 2 then '<font color=red>下线</font>' when 0 then '<font>未知</font>' end as `status` ";
}
}
$sql="select ".$fields." from sh_media_wasu where 1=1 ".$where.";";
$sql="select ".$fields." from sh_media_wasu_$searchSp where 1=1 ".$where.";";