|
|
|
@ -121,9 +121,7 @@ class Api_CageController extends Ctrl_Api{ |
|
|
|
|
} |
|
|
|
|
public function getCageinfoACtion(){ |
|
|
|
|
$id = empty($this->POST['id'])?Tool_Fnc::apiMsg('缺少笼位ID', '500'):$this->POST['id']; |
|
|
|
|
$type = empty($this->POST['type'])?Tool_Fnc::apiMsg('缺少笼位ID', '500'):$this->POST['type']; |
|
|
|
|
$params['where'] = "and cage = {$id}"; |
|
|
|
|
$params['type'] =$type; |
|
|
|
|
$data['cage'] = $this->Cagemodel->getOneInfo($id); |
|
|
|
|
$data['cage']['code'] = ''; |
|
|
|
|
$data['squirrel'] = $this->SquirrelModel->getModelList($params); |
|
|
|
|