From 24dc6c9e016a9f4078b116cef12e112c51d89f24 Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Thu, 6 Jun 2024 15:43:59 +0800 Subject: [PATCH] YS --- application/controllers/Api/Cage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Api/Cage.php b/application/controllers/Api/Cage.php index 05be4e8..8fd632f 100644 --- a/application/controllers/Api/Cage.php +++ b/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']; $params['where'] = "and cage = {$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); Tool_Fnc::apiMsg('获取成功', '200',$data); }