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; } }