From 2e970fb5a0d3d95d54bdb8792f0ebf9edca8060f Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Tue, 28 May 2024 11:57:54 +0800 Subject: [PATCH] ys --- application/controllers/Api/Squirrel.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/controllers/Api/Squirrel.php b/application/controllers/Api/Squirrel.php index 6c69479..4725be6 100644 --- a/application/controllers/Api/Squirrel.php +++ b/application/controllers/Api/Squirrel.php @@ -183,6 +183,7 @@ class Api_SquirrelController extends Ctrl_Api{ $data['created'] = date('Y-m-d H:i:s',time()); $squirrelinfo = $this->Squirrelmodel->field("*")->where("id={$data['id']}")->fRow(); $cageinfo = $this->CageModel->field("type")->where("id={$squirrelinfo['cage']}")->fRow(); + print_r($cageinfo);die; if($cageinfo['type']==2){ if($data['sex']==1){ if((int)$this->Squirrelmodel->field("count(*) num")->where("sex=1 and cage={$cageinfo['cage']}")->fList()['num']==1) Tool_Fnc::apiMsg('该笼公鼠已上限', '500');