作者 邓超

优化

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