fix: 修复闪退

This commit is contained in:
HuanCheng65 2022-08-06 08:28:28 +08:00
parent 7a8932c234
commit 4b3e3346bb
No known key found for this signature in database
GPG Key ID: E9031EF91A805148
2 changed files with 5 additions and 7 deletions

View File

@ -83,7 +83,7 @@ data class Profile(
@SerializedName("bg_pic")
val bgPic: String,
@SerializedName("birthday_info")
val birthdayInfo: BirthdayInfo,
val birthdayInfo: BirthdayInfo?,
@SerializedName("bookmark_count")
val bookmarkCount: String,
@SerializedName("bookmark_new_count")
@ -159,8 +159,6 @@ data class Profile(
val newTshowIcon: List<Any>,
@SerializedName("outer_id")
val outerId: String,
@SerializedName("parr_scores")
val parrScores: ParrScores,
@SerializedName("pay_member_info")
val payMemberInfo: PayMemberInfo,
val pendant: List<Any>,

View File

@ -192,10 +192,10 @@ class MyInfoFragment : BaseFragment(), View.OnClickListener, CompoundButton.OnCh
postNum = profile.user.postNum
concernNum = profile.user.concernNum
tbAge = profile.user.tbAge
age = profile.user.birthdayInfo.age
birthdayShowStatus = profile.user.birthdayInfo.birthdayShowStatus
birthdayTime = profile.user.birthdayInfo.birthdayTime
constellation = profile.user.birthdayInfo.constellation
age = profile.user.birthdayInfo?.age
birthdayShowStatus = profile.user.birthdayInfo?.birthdayShowStatus
birthdayTime = profile.user.birthdayInfo?.birthdayTime
constellation = profile.user.birthdayInfo?.constellation
saveOrUpdate("uid = ?", uid)
}
}