Skip to content

Commit

Permalink
fix: 处理position字段缺失问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ZKLlab committed Nov 16, 2024
1 parent 7f6e0ae commit cdc7888
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function makeCoursesSimple(courses: ICourse[]): ISimpleCourse[] {
teacherTitle: course.SKJSZC,
classTime: course.YPSJDD,
campus: course.XQ,
position: course.teachingPlaceHide,
position: course.teachingPlaceHide || '',
capacity: course.KRL.toString(),
number:
course.noCheckKrl === '1'
Expand Down
2 changes: 1 addition & 1 deletion src/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export interface ICourse {
* 如:三7-8 限钱院
*/
teachingPlace: string;
teachingPlaceHide: '';
teachingPlaceHide?: string;
/**
* 学时
*/
Expand Down

0 comments on commit cdc7888

Please sign in to comment.