master
LMR 2 years ago
parent 469ab4833b
commit 47b5212e52

@ -78,7 +78,7 @@ class Index extends CI_Controller
public function index() public function index()
{ {
$data = array(); $data = array();
$orders = $this->wwwlogs_model->get_update_list(10); $orders = $this->wwwlogs_model->get_update_list(12);
// print_r($orders); // print_r($orders);
if ($orders) { if ($orders) {
foreach ($orders as $item) { foreach ($orders as $item) {

@ -43,6 +43,7 @@ class wwwlogs_model extends CI_Model
{ {
$this->init(); $this->init();
$this->topnum = $topnum; $this->topnum = $topnum;
$this->orderby = ' order by COLI_SN desc ';
return $this->get_list(); return $this->get_list();
} }

Loading…
Cancel
Save