跟进时间

This commit is contained in:
2025-08-22 13:59:39 +08:00
parent 5f88f8687d
commit c6908e57cc
3 changed files with 6 additions and 7 deletions
+3 -7
View File
@@ -38,13 +38,9 @@ class Follow extends Model
*/
public $timestamps = true;
protected $dates = ['created_at', 'updated_at', 'follow_time'];
protected $casts = [
'updated_at' => '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', // 指定序列化格式
'follow_time' => 'timestamp', // 指定序列化格式
'updated_at' => 'timestamp', // 指定序列化格式
'created_at' => 'timestamp', // 指定序列化格式
];
}
+2
View File
@@ -59,6 +59,8 @@ class FollowService
$oss_picture = $ossservice->generatePrivateUrl($follow['picture'], 86400);
}
$follow['picture_full'] = $oss_picture;
$follow = Util::formatDate($follow,['created_at','updated_at','follow_time']);
// $follow = Util::formatDate($follow);
return $follow;
}
+1
View File
@@ -469,6 +469,7 @@ class CustomerService
$ossservice = new OssService();
foreach ($follow as $item) {
$item = Util::formatDate($item,['created_at','updated_at','follow_time']);
$item['picture_full'] = empty($item->picture)?'':$ossservice->generatePrivateUrl($item->picture);
}