-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 修复工学云 getJobInfo 函数中的击穿问题,增加 PlanId 检测
- 修复了在 `getJobInfo` 函数中未正确检测空值或无效工作信息导致的崩溃问题,确保在没有有效工作信息时能正确处理并返回错误。 - 增加了对 `PlanId` 的检测,确保在处理时 `PlanId` 为有效值,避免因空值或无效数据引起后续问题。 feat: 学习通新增个人信息与课程检测功能(后续开发中) - 新增了个人信息检测功能,确保从学习通获取的个人信息有效。 - 增加了课程检测功能,确保课程数据正常处理。 - 这些功能目前处于开发阶段,后续将进一步完善并测试。
- Loading branch information
Showing
7 changed files
with
251 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
package data | ||
|
||
type AccinfoData struct { | ||
Msg struct { | ||
Fid int `json:"fid"` | ||
Rosterrights int `json:"rosterrights"` | ||
CodeInfos struct { | ||
HomeConfig struct { | ||
Weburl string `json:"weburl"` | ||
Dwtype int `json:"dwtype"` | ||
Hometype int `json:"hometype"` | ||
} `json:"homeConfig"` | ||
} `json:"codeInfos"` | ||
Boundaccount int `json:"boundaccount"` | ||
LoginId int `json:"loginId"` | ||
CodeInfo struct { | ||
} `json:"codeInfo"` | ||
Pic string `json:"pic"` | ||
Source string `json:"source"` | ||
Type int `json:"type"` | ||
Ranknum string `json:"ranknum"` | ||
IsCertify int `json:"isCertify"` | ||
Uname string `json:"uname"` | ||
CopyRight int `json:"copyRight"` | ||
UnitConfig struct { | ||
} `json:"unitConfig"` | ||
Schoolname string `json:"schoolname"` | ||
UnitConfigInfo struct { | ||
HpConfig struct { | ||
ShowBaseHp int `json:"showBaseHp"` | ||
ShowMicroServiceHp int `json:"showMicroServiceHp"` | ||
} `json:"hpConfig"` | ||
Xb int `json:"xb"` | ||
} `json:"unitConfigInfo"` | ||
UnitConfigInfos []struct { | ||
Fid int `json:"fid"` | ||
HpConfig struct { | ||
ShowBaseHp int `json:"showBaseHp"` | ||
ShowMicroServiceHp int `json:"showMicroServiceHp"` | ||
} `json:"hpConfig"` | ||
Xb int `json:"xb"` | ||
Schoolname string `json:"schoolname"` | ||
} `json:"unitConfigInfos"` | ||
Phone string `json:"phone"` | ||
BindFanya bool `json:"bindFanya"` | ||
UpdateWay string `json:"updateWay"` | ||
Name string `json:"name"` | ||
Fullpinyin string `json:"fullpinyin"` | ||
UserConfig struct { | ||
Recommend struct { | ||
All int `json:"all"` | ||
} `json:"recommend"` | ||
} `json:"userConfig"` | ||
Status int `json:"status"` | ||
SwitchInfo string `json:"switchInfo"` | ||
Roleid string `json:"roleid"` | ||
Controlinfo struct { | ||
InitializedRole string `json:"initializedRole"` | ||
Selected string `json:"selected"` | ||
} `json:"controlinfo"` | ||
Industry int `json:"industry"` | ||
Uid int `json:"uid"` | ||
Acttime2 string `json:"acttime2"` | ||
Dxfid string `json:"dxfid"` | ||
Puid int `json:"puid"` | ||
Rights int `json:"rights"` | ||
NeedIntruction int `json:"needIntruction"` | ||
Openid4 string `json:"openid4"` | ||
BindOpac bool `json:"bindOpac"` | ||
Ppfid string `json:"ppfid"` | ||
AccountInfo struct { | ||
CxOpac struct { | ||
LoginId int `json:"loginId"` | ||
Tiptitle string `json:"tiptitle"` | ||
LoginUrl string `json:"loginUrl"` | ||
BoundUrl string `json:"boundUrl"` | ||
Tippwd string `json:"tippwd"` | ||
Tipuname string `json:"tipuname"` | ||
} `json:"cx_opac"` | ||
ImAccount struct { | ||
Uid int `json:"uid"` | ||
Password string `json:"password"` | ||
Created int64 `json:"created"` | ||
Modified int64 `json:"modified"` | ||
Type string `json:"type"` | ||
Uuid string `json:"uuid"` | ||
Activated int `json:"activated"` | ||
Username string `json:"username"` | ||
} `json:"imAccount"` | ||
CxFanya struct { | ||
LoginId int `json:"loginId"` | ||
CopyRight int `json:"copyRight"` | ||
Roleid string `json:"roleid"` | ||
Countrycode string `json:"countrycode"` | ||
Tippwd string `json:"tippwd"` | ||
Result bool `json:"result"` | ||
Uid int `json:"uid"` | ||
Dxfid string `json:"dxfid"` | ||
Tiptitle string `json:"tiptitle"` | ||
LoginUrl string `json:"loginUrl"` | ||
Schoolid int `json:"schoolid"` | ||
Time int64 `json:"time"` | ||
BoundUrl string `json:"boundUrl"` | ||
Tipuname string `json:"tipuname"` | ||
IsCertify int `json:"isCertify"` | ||
Cxid int `json:"cxid"` | ||
CreateDate string `json:"createDate"` | ||
Status int `json:"status"` | ||
} `json:"cx_fanya"` | ||
} `json:"accountInfo"` | ||
Simplepinyin string `json:"simplepinyin"` | ||
Sex int `json:"sex"` | ||
IsNewUser int `json:"isNewUser"` | ||
Studentcode string `json:"studentcode"` | ||
PrivacyPolicyVersion int `json:"privacyPolicyVersion"` | ||
Inputfid int `json:"inputfid"` | ||
} `json:"msg"` | ||
Result int `json:"result"` | ||
} |
Oops, something went wrong.