Skip to content

Commit

Permalink
🐛 修复release包下进入个人中心页面空指针闪退的问题,优化代码结构
Browse files Browse the repository at this point in the history
  • Loading branch information
RedSun-V committed Mar 30, 2024
1 parent a1f3574 commit 2b51885
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 32 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
package com.mredrock.cyxbs.mine.bean


import com.google.gson.annotations.SerializedName

data class PersonData(
@SerializedName("data")
val `data`: Data,
@SerializedName("info")
val info: String,
@SerializedName("status")
val status: Int
) {
data class Data(
@SerializedName("background_url")
val backgroundUrl: String,
@SerializedName("birthday")
val birthday: String,
@SerializedName("college")
val college: String,
@SerializedName("constellation")
val constellation: String,
@SerializedName("gender")
val gender: String,
@SerializedName("grade")
val grade: String,
@SerializedName("identityies")
val identityies: Any,
@SerializedName("introduction")
val introduction: String,
@SerializedName("isBefocused")
val isBefocused: Boolean,
@SerializedName("isFocus")
val isFocus: Boolean,
@SerializedName("is_self")
val isSelf: Boolean,
@SerializedName("nickname")
val nickname: String,
@SerializedName("phone")
val phone: String,
@SerializedName("photo_src")
val photoSrc: String,
@SerializedName("photo_thumbnail_src")
val photoThumbnailSrc: String,
@SerializedName("qq")
val qq: String,
@SerializedName("redid")
val redid: String,
@SerializedName("stunum")
val stunum: String,
@SerializedName("uid")
val uid: Int,
@SerializedName("username")
val username: String
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.mredrock.cyxbs.common.bean.RedrockApiWrapper
import com.mredrock.cyxbs.lib.utils.network.ApiStatus
import com.mredrock.cyxbs.lib.utils.network.ApiWrapper
import com.mredrock.cyxbs.lib.utils.network.IApi
import com.mredrock.cyxbs.mine.Bean.PersonData
import com.mredrock.cyxbs.mine.bean.PersonData
import com.mredrock.cyxbs.mine.network.model.*
import io.reactivex.rxjava3.core.Observable
import io.reactivex.rxjava3.core.Single
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.mredrock.cyxbs.common.utils.down.params.DownMessageParams
import com.mredrock.cyxbs.common.utils.extensions.errorHandler
import com.mredrock.cyxbs.common.utils.extensions.setSchedulers
import com.mredrock.cyxbs.lib.utils.network.api
import com.mredrock.cyxbs.mine.Bean.PersonData
import com.mredrock.cyxbs.mine.bean.PersonData
import com.mredrock.cyxbs.mine.network.ApiService
import com.mredrock.cyxbs.mine.util.apiService
import com.mredrock.cyxbs.mine.util.widget.ExecuteOnceObserver
Expand Down

0 comments on commit 2b51885

Please sign in to comment.