From 0b6d63ce239419b8f7b7fc8a4def0f4c9b22ae75 Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Thu, 28 Aug 2025 13:02:37 +0800 Subject: [PATCH] update --- app/Exports/BaseExport.php | 1 + app/Models/Course.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Exports/BaseExport.php b/app/Exports/BaseExport.php index 0b81632..a7d8d7b 100755 --- a/app/Exports/BaseExport.php +++ b/app/Exports/BaseExport.php @@ -49,6 +49,7 @@ class BaseExport implements FromCollection $newList[] = $this->intToSting($temp); } array_unshift($newList, $header); //插入表头 + dd($newList); return $newList; } diff --git a/app/Models/Course.php b/app/Models/Course.php index 92aad96..487fbc3 100755 --- a/app/Models/Course.php +++ b/app/Models/Course.php @@ -51,7 +51,7 @@ class Course extends SoftDeletesModel $array = [0 => '否', 1 => '是']; return $array[$this->attributes['auto_schoolmate']]; } - + public function getIsVirtualTextAttribute() { $array = [0 => '否', 1 => '是'];