From 7e3b4b795b5d9fe37c8388e00ea00defdddff370 Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Mon, 20 May 2024 15:28:36 +0800 Subject: [PATCH] YS --- application/models/CageSet.php | 2 ++ application/models/SquirrelSet.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/application/models/CageSet.php b/application/models/CageSet.php index 624f522..c241d59 100644 --- a/application/models/CageSet.php +++ b/application/models/CageSet.php @@ -16,6 +16,8 @@ class CageSetModel extends Orm_Base{ public $pk = 'id'; public function getsetinfo($params){ $data = $this->field('*')->where('c_user_id='.$params['user_id'])->fRow(); + $data['timeout_split_remind'] = (bool)$data['timeout_split_remind']; + $data['overload_remind'] = (bool)$data['overload_remind']; return $data; } } diff --git a/application/models/SquirrelSet.php b/application/models/SquirrelSet.php index 4b63b8b..cf71fa8 100644 --- a/application/models/SquirrelSet.php +++ b/application/models/SquirrelSet.php @@ -18,6 +18,8 @@ class SquirrelSetModel extends Orm_Base{ public $pk = 'id'; public function getsetinfo($params){ $data = $this->field('*')->where('user_id='.$params['user_id'])->fRow(); + $data['breeding_tag'] = (bool) $data['breeding_tag']; + $data['see_bole_tag'] = (bool) $data['see_bole_tag']; return $data; } }