yangsai@163.com 6 months ago
parent 47df51a9bf
commit 478d150f8d
  1. 4
      application/models/NewSquirrel.php
  2. 4
      application/models/Squirrel.php
  3. BIN
      public/icon/big.png

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

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Loading…
Cancel
Save