yangsai@163.com 6 months ago
parent 478d150f8d
commit 7e3b4b795b
  1. 2
      application/models/CageSet.php
  2. 2
      application/models/SquirrelSet.php

@ -16,6 +16,8 @@ class CageSetModel extends Orm_Base{
public $pk = 'id'; public $pk = 'id';
public function getsetinfo($params){ public function getsetinfo($params){
$data = $this->field('*')->where('c_user_id='.$params['user_id'])->fRow(); $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; return $data;
} }
} }

@ -18,6 +18,8 @@ class SquirrelSetModel extends Orm_Base{
public $pk = 'id'; public $pk = 'id';
public function getsetinfo($params){ public function getsetinfo($params){
$data = $this->field('*')->where('user_id='.$params['user_id'])->fRow(); $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; return $data;
} }
} }

Loading…
Cancel
Save