商品库

This commit is contained in:
2025-12-17 10:40:58 +08:00
parent a02eddb0d0
commit 51b11b3437
13 changed files with 523 additions and 8 deletions
+6
View File
@@ -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');
}
}