This commit is contained in:
Dai 2024-08-13 15:30:15 +08:00
parent 97856ac4f2
commit 2bb1825208

View File

@ -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'