diff --git a/application/controllers/Api/Cage.php b/application/controllers/Api/Cage.php index 982054f..4910431 100644 --- a/application/controllers/Api/Cage.php +++ b/application/controllers/Api/Cage.php @@ -123,7 +123,7 @@ class Api_CageController extends Ctrl_Api{ $id = empty($this->POST['id'])?Tool_Fnc::apiMsg('缺少笼位ID', '500'):$this->POST['id']; $params['where'] = "and cage = {$id}"; $data['cage'] = $this->Cagemodel->getOneInfo($id); - $data['cage']['code'] = Yaf_Registry::get("config")->web->url->img; + $data['cage']['code'] = Yaf_Registry::get("config")->web->url->img."?id={$id}"; $data['squirrel'] = $this->SquirrelModel->getModelList($params); Tool_Fnc::apiMsg('获取成功', '200',$data); }