作者 邓超

优化

... ... @@ -46,7 +46,7 @@ class listsSql {
}elseif (is_numeric($where)) {
$where = dbWhere(['id' => $where]);
}
foreach ([self::$table,"lists_back","lists_hot"] as $table) {
foreach ([self::$table,"lists_back",/* "lists_hot" */] as $table) {
$sql = "select {$filed} from `".$table."` where ".$where.' limit 1';
if($throw){
$data = $db->throw($throw)->first($sql);
... ... @@ -75,6 +75,7 @@ class listsSql {
$sql = "select max(`uid`) as `mc` from `".$table."` where ".$where;
$data = $db->value($sql);
if($data) {
return $data;
$uid = max($uid, $data);
}
}
... ...