From 4bc795b00306a4ffef3ab17cc8f9bfaf9923a0dc Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Wed, 22 May 2024 11:01:07 +0800 Subject: [PATCH] YS --- application/controllers/Api/Sysset.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/controllers/Api/Sysset.php b/application/controllers/Api/Sysset.php index 3622686..51716d1 100644 --- a/application/controllers/Api/Sysset.php +++ b/application/controllers/Api/Sysset.php @@ -35,10 +35,13 @@ class Api_SyssetController extends Ctrl_Api{ public function editSetAction(){ $uid = empty($this->POST['uid'])?Tool_Fnc::apiMsg('请先登录', '500'):$this->POST['uid']; $cageSet = $this->POST['cageSet']; + $cageSet['user_id']=$uid; $squirrelSet = $this->POST['squirrelSet']; + $squirrelSet['user_id']=$uid; $excelSet = $this->POST['excelSet']; $excelSet['now_squirrel']=json_encode($excelSet['now_squirrel']); $excelSet['handle_squirrel']=json_encode($excelSet['handle_squirrel']); + $excelSet['user_id']=$uid; $this->CageSetModel->save($cageSet); $this->SquirrelSetModel->save($squirrelSet); $this->ExcelSetModel->save($excelSet);