diff --git a/app/src/main/java/com/huanchengfly/tieba/post/api/models/Profile.kt b/app/src/main/java/com/huanchengfly/tieba/post/api/models/Profile.kt index 59366784..d4df135f 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/api/models/Profile.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/api/models/Profile.kt @@ -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, @SerializedName("outer_id") val outerId: String, - @SerializedName("parr_scores") - val parrScores: ParrScores, @SerializedName("pay_member_info") val payMemberInfo: PayMemberInfo, val pendant: List, diff --git a/app/src/main/java/com/huanchengfly/tieba/post/fragments/MyInfoFragment.kt b/app/src/main/java/com/huanchengfly/tieba/post/fragments/MyInfoFragment.kt index 70ade6a0..89bfa7e6 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/fragments/MyInfoFragment.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/fragments/MyInfoFragment.kt @@ -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) } }