yangsai@163.com 8 months ago
parent e3553ef8ee
commit 44bc3632b2
  1. 4
      application/models/Squirrel.php
  2. BIN
      public/icon/big.png
  3. BIN
      public/icon/small.png

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Loading…
Cancel
Save