table} "; $count = $GeneModel->query($sql); $sql = "select * from {$GeneModel->table} order by id desc limit {$offset},{$limit} "; $data = $GeneModel->query($sql); $return['code'] = 0; $return['count'] = count($count); $return['data'] = $data; $return['msg'] = "成功"; echo json_encode($return);die; } }