This commit is contained in:
2025-07-16 13:58:51 +08:00
parent bfd458aeb7
commit 1ccaced113
+2 -4
View File
@@ -38,10 +38,6 @@ class Follow extends Model
*/
public $timestamps = true;
protected $dates = ['created_at', 'updated_at', 'follow_time'];
protected $timezone = 'Asia/Shanghai';
protected $casts = [
'updated_at' => 'datetime:Y-m-d H:i:s', // 指定序列化格式
'created_at' => 'datetime:Y-m-d H:i:s', // 指定序列化格式
@@ -61,6 +57,8 @@ class Follow extends Model
}else {
$follow['oss_picture'] = '';
}
$follow['created_at'] = date('Y-m-d H:i:s',strtotime($follow['created_at'])+(3600*8));
$follow['updated_at'] = date('Y-m-d H:i:s',strtotime($follow['updated_at'])+(3600*8));
// $follow = Util::formatDate($follow);
return $follow;
}