From 47b5212e520f9e6eb7206c06e9e591dd025ca263 Mon Sep 17 00:00:00 2001 From: LMR <59361885@qq.com> Date: Tue, 16 Jan 2024 14:49:44 +0800 Subject: [PATCH] faiux --- application/third_party/wwwlog/controllers/index.php | 2 +- application/third_party/wwwlog/models/wwwlogs_model.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/application/third_party/wwwlog/controllers/index.php b/application/third_party/wwwlog/controllers/index.php index eb29e692..fa056cfd 100644 --- a/application/third_party/wwwlog/controllers/index.php +++ b/application/third_party/wwwlog/controllers/index.php @@ -78,7 +78,7 @@ class Index extends CI_Controller public function index() { $data = array(); - $orders = $this->wwwlogs_model->get_update_list(10); + $orders = $this->wwwlogs_model->get_update_list(12); // print_r($orders); if ($orders) { foreach ($orders as $item) { diff --git a/application/third_party/wwwlog/models/wwwlogs_model.php b/application/third_party/wwwlog/models/wwwlogs_model.php index 3eec27d8..d9fc123e 100644 --- a/application/third_party/wwwlog/models/wwwlogs_model.php +++ b/application/third_party/wwwlog/models/wwwlogs_model.php @@ -43,6 +43,7 @@ class wwwlogs_model extends CI_Model { $this->init(); $this->topnum = $topnum; + $this->orderby = ' order by COLI_SN desc '; return $this->get_list(); }