作者 lyh

gx

... ... @@ -20,7 +20,6 @@ class News extends Base
if(!$value){
return date('Y-m-d H:i:s', strtotime($this->getAttribute('created_at')));
}
return $value;
}
}
... ...
... ... @@ -164,4 +164,10 @@ class Product extends Base
// return self::where('project_id', $project_id)->where('status', self::STATUS_ON)->count();
// }
public function getSendTimeAttribute($value){
if(!$value){
return date('Y-m-d H:i:s', strtotime($this->getAttribute('created_at')));
}
return $value;
}
}
... ...