Skip to content

Commit c0b7aa9

Browse files
committed
fix #2 again!
1 parent f38d9f6 commit c0b7aa9

4 files changed

Lines changed: 4 additions & 122 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group = "KonnyakuCamp"
9-
version = "0.3.2"
9+
version = "0.3.3"
1010

1111
repositories {
1212
mavenLocal()

src/main/kotlin/stageguard/sctimetable/PluginMain.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import stageguard.sctimetable.service.*
2424
object PluginMain : KotlinPlugin(
2525
JvmPluginDescription(
2626
id = "stageguard.sctimetable",
27-
version = "0.3.2",
27+
version = "0.3.3",
2828
name = "SuperCourseTimetable"
2929
)
3030
) {

src/main/kotlin/stageguard/sctimetable/api/edu_system/super/LoginReceiptDTO.kt

Lines changed: 0 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -41,143 +41,25 @@ data class __InternalData(
4141

4242
@Serializable
4343
data class __InternalStudent(
44-
val academyId: Int,
45-
val academyName: String,
46-
val addTime: Long,
4744
val attachmentBO: __InternalAttachmentBO,
48-
val avatarUrl: String,
49-
val avaterReview: Int,
50-
val beginYear: Int,
51-
val bigAvatarUrl: String,
52-
val bornCity: String = "",
53-
val bornCityId: Int,
54-
val bornDate: Long,
55-
val bornProvince: String = "",
56-
val bornProvinceId: Int,
57-
val certificationType: Int,
58-
val fullAvatarUrl: String,
59-
val gender: Int,
60-
val grade: Int,
61-
val highSchoolId: Int,
62-
val hobby: String = "",
63-
val id: Int,
64-
val identity: String,
65-
val isCancel: Boolean,
66-
val isCelebrity: Int,
67-
val lastLoginTime: Long,
68-
val loveState: Int,
69-
val maxCount: Int,
70-
val memberShipType: Int,
71-
val mobileNumber: String,
7245
val nickName: String,
73-
val nickNameReview: Int,
74-
val nowStatus: String = "",
75-
val oldAvatarUrl: String,
76-
val oldNickName: String,
77-
val oldnicknamereview: Int,
78-
val organization: String,
79-
val photoBO: List<__InternalPhotoBO>,
80-
val profession: String,
81-
val publishType: Int,
82-
val rate: Int,
83-
val realName: String,
8446
val schoolId: Int,
8547
val schoolName: String,
86-
val schoolRoll: Int,
87-
val showRate: Boolean,
8848
val studentId: Int,
89-
val studentNum: String = "",
90-
val studentType: Int,
91-
val superId: String,
92-
val supportAuto: Boolean,
93-
val term: Int,
94-
val verify: String,
95-
val versionId: Int,
96-
val vipLevel: Int,
97-
val weiboAccount: Int,
98-
val weiboExpiresIn: Int,
99-
val classes: Int = 1,
100-
val hometown: String = ""
10149
)
10250

10351
@Serializable
10452
data class __InternalAttachmentBO(
105-
val contactStatus: Int,
106-
val courseRemind: Int,
107-
val courseRemindTime: Long,
108-
val dayOfWeek: Int,
109-
val defaultImgUrl: List<String>,
110-
val defaultOpen: Int,
111-
val gopushBO: __InternalGopushBO,
112-
val hasTermList: Boolean,
113-
val hasVerCode: Boolean,
114-
val hobby: String = "",
115-
val identity: String,
11653
val myTermList: List<__InternalMyTerm>,
117-
val needSASL: Int,
118-
val nowWeekMsg: __InternalNowWeekMsg,
119-
val openGopush: Boolean,
120-
val openJpush: Boolean,
121-
val openRubLessonInt: Int,
122-
val purviewValue: Int,
123-
val pushTime: Long,
124-
val rate: Int,
125-
val realNameMsgNum: Int,
126-
val rubLessonTips: String,
127-
val schoolInfo: __InternalSchoolInfo,
128-
val showRate: Boolean,
129-
val supportAuto: Boolean,
130-
val termBOList: List<__InternalTermBO>,
131-
val type: String,
132-
val vipLevel: Int,
133-
val xmppDomain: String
134-
)
135-
136-
@Serializable
137-
data class __InternalPhotoBO(
138-
val avatar: Boolean,
139-
val id: Int,
140-
val photoId: Int,
141-
val photoUrl: String,
142-
val studentId: Int,
143-
val thumUrl: String
144-
)
145-
146-
@Serializable
147-
data class __InternalGopushBO(
148-
val aliasName: String,
149-
val mid: Int,
150-
val pmid: Int
15154
)
15255

15356
@Serializable
15457
data class __InternalMyTerm(
155-
val addTime: Long,
15658
val beginYear: Int,
15759
val courseTimeList: __InternalCourseTimeList,
158-
val id: Int,
159-
val maxCount: Int,
160-
val studentId: Int,
16160
val term: Int
16261
)
16362

164-
@Serializable
165-
data class __InternalNowWeekMsg(
166-
val nowWeek: Int,
167-
val setTime: Long
168-
)
169-
170-
@Serializable
171-
data class __InternalSchoolInfo(
172-
val firstDayOfWeek: Int
173-
)
174-
175-
@Serializable
176-
data class __InternalTermBO(
177-
val content: String,
178-
val termId: Int
179-
)
180-
18163
@Serializable
18264
data class __InternalCourseTimeList(
18365
val courseTimeBO: List<__InternalCourseTimeBO> = listOf()

src/main/kotlin/stageguard/sctimetable/api/edu_system/super/SuperCourseApiService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ object SuperCourseApiService {
143143
}.execute {
144144
val result = it.content.readUTF8Line() ?: "{\"message\":\"Empty response content.\",\"title\":\"\"}"
145145
try {
146-
Either.Left(Json.decodeFromString(result))
146+
Either.Left(Json { ignoreUnknownKeys = true }.decodeFromString(result))
147147
} catch (error: Exception) {
148-
Either.Right(Json.decodeFromString(result))
148+
Either.Left(Json { ignoreUnknownKeys = true }.decodeFromString(result))
149149
}
150150
}
151151
} catch (ex: Exception) {

0 commit comments

Comments
 (0)