|
|
|
@ -38,8 +38,8 @@ class SquirrelModel extends Orm_Base{ |
|
|
|
|
$father = $this->getOneInfo($val['father']); |
|
|
|
|
$mother = $this->getOneInfo($val['mother']); |
|
|
|
|
$val['sex'] = $val['sex']=1?'公':'母'; |
|
|
|
|
$val['father'] = empty($father)?'无':$father['number']; |
|
|
|
|
$val['mother'] = empty($mother)?'无':$mother['number']; |
|
|
|
|
$val['father'] = empty($father)?$val['father']:$father['number']; |
|
|
|
|
$val['mother'] = empty($mother)?$val['mother']:$mother['number']; |
|
|
|
|
//获取笼位号 |
|
|
|
|
$val['cage'] =$cageModel->getOneInfo($val['cage'])['number']; |
|
|
|
|
} |
|
|
|
@ -85,10 +85,11 @@ class SquirrelModel extends Orm_Base{ |
|
|
|
|
$date = strtotime(date('Y-m-d',time())); |
|
|
|
|
$info = $this->field('nusring_time')->where("id={$squirrel}")->fRow(); |
|
|
|
|
if(strotime($info['nusring_time'])>$date){ |
|
|
|
|
$data['icon'] = Yaf_Registry::get("config")->psd->default->appsecret; |
|
|
|
|
$data['icon'] = Yaf_Registry::get("config")->cangshu->url->small; |
|
|
|
|
}else{ |
|
|
|
|
|
|
|
|
|
$data['icon'] = Yaf_Registry::get("config")->cangshu->url->big; |
|
|
|
|
} |
|
|
|
|
return $data; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|