yangsai@163.com 6 months ago
parent 9952b95c36
commit 24dc6c9e01
  1. 2
      application/controllers/Api/Cage.php

@ -118,7 +118,7 @@ class Api_CageController extends Ctrl_Api{
$id = empty($this->POST['id'])?Tool_Fnc::apiMsg('缺少笼位ID', '500'):$this->POST['id']; $id = empty($this->POST['id'])?Tool_Fnc::apiMsg('缺少笼位ID', '500'):$this->POST['id'];
$params['where'] = "and cage = {$id}"; $params['where'] = "and cage = {$id}";
$data['cage'] = $this->Cagemodel->getOneInfo($id); $data['cage'] = $this->Cagemodel->getOneInfo($id);
$data['cage']['code'] = Yaf_Registry::get("config")->web->url->img."?id={$id}"; $data['cage']['code'] = Yaf_Registry::get("config")->web->url->img."?id={$id}&type={$data['cage']['type']}&number={$data['cage']['number']}";
$data['squirrel'] = $this->SquirrelModel->getModelList($params); $data['squirrel'] = $this->SquirrelModel->getModelList($params);
Tool_Fnc::apiMsg('获取成功', '200',$data); Tool_Fnc::apiMsg('获取成功', '200',$data);
} }

Loading…
Cancel
Save