yangsai@163.com 6 months ago
parent 73da7be742
commit 3af407c76d
  1. 6
      application/controllers/Admin/User.php
  2. 2
      application/models/Cage.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[]
}
}

@ -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";

Loading…
Cancel
Save