From 2bb18252089c5beb4439ec4e095fff82d56ef00d Mon Sep 17 00:00:00 2001 From: Dai Date: Tue, 13 Aug 2024 15:30:15 +0800 Subject: [PATCH] fix bug --- .../admin/app/controller/TeacherScheduleTimeController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/admin/app/controller/TeacherScheduleTimeController.php b/plugin/admin/app/controller/TeacherScheduleTimeController.php index 2b22f80..7e33b31 100644 --- a/plugin/admin/app/controller/TeacherScheduleTimeController.php +++ b/plugin/admin/app/controller/TeacherScheduleTimeController.php @@ -511,12 +511,12 @@ class TeacherScheduleTimeController extends Crud mkdir($save_path, 0777, true); } $writer->save($save_path . $file_name); - +s return json([ 'code' => ResponseCode::WEB_API_SUCCESS, 'data' => [ -// 'url' => getenv('SERVER_DOMAIN') . $file_path, - 'file_url' => 'http://course.test' . $file_path . $file_name, + 'url' => getenv('SERVER_DOMAIN') . $file_path . $file_name, +// 'file_url' => 'http://course.test' . $file_path . $file_name, 'file_name' => $file_name ], 'msg' => 'success'