From 3af407c76db23efc4666d5270f32533431519437 Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Mon, 3 Jun 2024 10:47:39 +0800 Subject: [PATCH] YS --- application/controllers/Admin/User.php | 6 ++++++ application/models/Cage.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/application/controllers/Admin/User.php b/application/controllers/Admin/User.php index 1269907..df8d979 100644 --- a/application/controllers/Admin/User.php +++ b/application/controllers/Admin/User.php @@ -111,4 +111,10 @@ class Admin_UserController extends Ctrl_Admin{ } return json_encode(array_merge($diff,$excelarray)); } + public function updatePassAction(){ + + } + public function updatePsdAction(){ +// $_P[] + } } \ No newline at end of file diff --git a/application/models/Cage.php b/application/models/Cage.php index 06e89b1..79bfcfd 100644 --- a/application/models/Cage.php +++ b/application/models/Cage.php @@ -22,7 +22,7 @@ class CageModel extends Orm_Base{ $limmit = empty($shownum['line_num'])?20:$shownum['line_num']*4; $sql = "select id,number,color,strains,type from cage where c_user_id={$params['uid']}"; if(!empty($params['keyword'])){ - $sql .=" where number like '%{$params['keyword']}%'"; + $sql .=" and number like '%{$params['keyword']}%'"; } if(!empty($params['order'])){ $sql .=" order by {$params['order']} desc";