'datetime:Y-m-d H:i:s', // 指定序列化格式 'created_at' => 'datetime:Y-m-d H:i:s', // 指定序列化格式 'follow_time' => 'datetime:Y-m-d H:i:s', // 指定序列化格式 // 'updated_at' => 'timestamp', // 指定序列化格式 // 'created_at' => 'timestamp', // 指定序列化格式 ]; public static function getFollow($follow,$domain = 'https://vehicle-album.oss-cn-beijing.aliyuncs.com') { $follow['type_txt'] = Constants::FOLLOW[$follow['type']]; $follow['firstFollowtime'] = $follow['follow_time']; $ossservice = new OssService(); $oss_picture = $ossservice->generatePrivateUrl($follow['picture'],86400); $follow['oss_picture'] = $oss_picture; // $follow = Util::formatDate($follow); return $follow; } }