|
|
@ -85,9 +85,9 @@ class SquirrelModel extends Orm_Base{ |
|
|
|
$date = strtotime(date('Y-m-d',time())); |
|
|
|
$date = strtotime(date('Y-m-d',time())); |
|
|
|
$info = $this->field('nursing_time')->where("id={$squirrel}")->fRow(); |
|
|
|
$info = $this->field('nursing_time')->where("id={$squirrel}")->fRow(); |
|
|
|
if(strtotime($info['nursing_time'])>$date){ |
|
|
|
if(strtotime($info['nursing_time'])>$date){ |
|
|
|
$data['icon'] = $_SERVER['HTTP_HOST'].Yaf_Registry::get("config")->cangshu->url->small; |
|
|
|
$data['icon'] = Yaf_Registry::get("config")->cangshu->url->small; |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
$data['icon'] =$_SERVER['HTTP_HOST'].Yaf_Registry::get("config")->cangshu->url->big; |
|
|
|
$data['icon'] = Yaf_Registry::get("config")->cangshu->url->big; |
|
|
|
} |
|
|
|
} |
|
|
|
return $data; |
|
|
|
return $data; |
|
|
|
} |
|
|
|
} |
|
|
|