fix 课程作业
This commit is contained in:
parent
40f339e5af
commit
6c339d847a
@ -5,21 +5,6 @@ namespace app\common\model;
|
|||||||
use app\BaseModel;
|
use app\BaseModel;
|
||||||
use support\Model;
|
use support\Model;
|
||||||
|
|
||||||
/**
|
|
||||||
* wa_teacher_homework
|
|
||||||
* @property integer $id (主键)
|
|
||||||
* @property integer $teacher_id 教师
|
|
||||||
* @property integer $teacher_schedule_time_id 教师排课id
|
|
||||||
* @property integer $subject_id 课程id
|
|
||||||
* @property string $homework_file_url 家庭作业地址
|
|
||||||
* @property string $homework_file_name 家庭作业文件名称
|
|
||||||
* @property string $homework_version_file_url 新版本家庭作业
|
|
||||||
* @property string $homework_version_file_name 新版本家庭作业文件名称
|
|
||||||
* @property integer $is_publish 是否发布
|
|
||||||
* @property mixed $created_at 创建时间
|
|
||||||
* @property string $update_at 更新时间
|
|
||||||
* @property string $deleted_at
|
|
||||||
*/
|
|
||||||
class SubjectHomework extends BaseModel
|
class SubjectHomework extends BaseModel
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -96,6 +96,22 @@ class SubjectHomeworkService
|
|||||||
->with(['teacher', 'subject'])
|
->with(['teacher', 'subject'])
|
||||||
->findOrEmpty();
|
->findOrEmpty();
|
||||||
|
|
||||||
|
if($subject_homework->homework_file_url){
|
||||||
|
$subject_homework->homework_file_url = json_decode($subject_homework->homework_file_url, true);
|
||||||
|
}
|
||||||
|
if($subject_homework->homework_version_file_url){
|
||||||
|
$subject_homework->homework_version_file_url = json_decode($subject_homework->homework_version_file_url, true);
|
||||||
|
}
|
||||||
|
if($subject_homework->last_homework_feedback_url){
|
||||||
|
$subject_homework->last_homework_feedback_url = json_decode($subject_homework->last_homework_feedback_url, true);
|
||||||
|
}
|
||||||
|
if($subject_homework->subject_report_url){
|
||||||
|
$subject_homework->subject_report_url = json_decode($subject_homework->subject_report_url, true);
|
||||||
|
}
|
||||||
|
if($subject_homework->subject_file_url){
|
||||||
|
$subject_homework->subject_file_url = json_decode($subject_homework->subject_file_url, true);
|
||||||
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'code' => ResponseCode::SUCCESS,
|
'code' => ResponseCode::SUCCESS,
|
||||||
'data' => $subject_homework,
|
'data' => $subject_homework,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user