From bc217b21481ae7e86075063c52a5f20236cebc4e Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Wed, 22 May 2024 11:10:57 +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 4910431..1d0475f 100644 --- a/application/controllers/Api/Cage.php +++ b/application/controllers/Api/Cage.php @@ -67,7 +67,7 @@ class Api_CageController extends Ctrl_Api{ public function addAction(){ //查询笼位号 $data['c_user_id'] = empty($this->POST['uid'])?Tool_Fnc::apiMsg('请先登录', '500'):$this->POST['uid']; - $CageNum = $this->Cagemodel->field('count(*) as num')->where("user_id={$data['c_user_id']}")->fRow(); + $CageNum = $this->Cagemodel->field('count(*) as num')->where("c_user_id={$data['c_user_id']}")->fRow(); $CageNum = empty($CageNum)?1:(int) $CageNum['num']+1; $data['type'] = $this->POST['type']; $data['number'] = "NO.0000".$CageNum;