商品库
This commit is contained in:
@@ -51,4 +51,10 @@ class PostFavorite extends Model
|
||||
{
|
||||
return $this->hasOne('app\common\model\Post', 'id', 'post_id');
|
||||
}
|
||||
|
||||
protected function serializeDate(\DateTimeInterface $date)
|
||||
{
|
||||
// 此方法决定了模型日期字段序列化时的默认格式
|
||||
return $date->format('Y-m-d H:i:s');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user