diff --git a/application/models/NewSquirrel.php b/application/models/NewSquirrel.php index f577e45..5a4d43d 100644 --- a/application/models/NewSquirrel.php +++ b/application/models/NewSquirrel.php @@ -29,7 +29,7 @@ class NewSquirrelModel extends Orm_Base{ $data=$this->field('id,count,birthday,father,mother,strains,gene,remark,cage')->where("id>0 {$params['where']}")->fList(); foreach($data as $key => &$val){ $val['cage'] = $CageModel->field('number')->where("id={$val['cage']}")->fRow()['number']; - $val['icon'] = "/public/icon/small.png"; + $val['icon'] = Yaf_Registry::get("config")->web->url->img."/public/icon/small.png"; } return $data; } @@ -37,7 +37,7 @@ class NewSquirrelModel extends Orm_Base{ $CageModel = new CageModel(); $data = $this->field('id,count,birthday,father,mother,strains,gene,remark,cage')->where("id={$squirrel}")->fRow(); $data['cage'] = $CageModel->field('number')->where("id={$data['cage']}")->fRow()['number']; - $data['icon'] = "/public/icon/small.png"; + $data['icon'] = Yaf_Registry::get("config")->web->url->img."/public/icon/small.png"; return $data; } } diff --git a/application/models/Squirrel.php b/application/models/Squirrel.php index bdcf350..cbc1e60 100644 --- a/application/models/Squirrel.php +++ b/application/models/Squirrel.php @@ -89,9 +89,9 @@ class SquirrelModel extends Orm_Base{ $data['icon'] = Yaf_Registry::get("config")->cangshu->url->small; }else{ if(strtotime($info['nursing_time'])<$date){ - $data['icon'] = Yaf_Registry::get("config")->cangshu->url->big; + $data['icon'] = Yaf_Registry::get("config")->web->url->img.Yaf_Registry::get("config")->cangshu->url->big; }else{ - $data['icon'] = Yaf_Registry::get("config")->cangshu->url->small; + $data['icon'] = Yaf_Registry::get("config")->web->url->img.Yaf_Registry::get("config")->cangshu->url->small; } } return $data; diff --git a/public/icon/big.png b/public/icon/big.png index 8274d52..40eca6b 100644 Binary files a/public/icon/big.png and b/public/icon/big.png differ