|
|
@@ -26,6 +26,7 @@ class LoginPresenter : BasePresenter<ILoginView>() {
|
|
|
NetApi.getUserInfo { userInfo ->
|
|
|
NetApi.getCardInfoByLoginUser { itInfo ->
|
|
|
itInfo?.let { info ->
|
|
|
+ info.userName = userInfo?.user?.nickName
|
|
|
SPUtils.setLoginUser(mContext!!, info)
|
|
|
}
|
|
|
callBack.invoke(it, itInfo, userInfo)
|
|
|
@@ -44,6 +45,7 @@ class LoginPresenter : BasePresenter<ILoginView>() {
|
|
|
NetApi.getCardInfoByLoginUser { itInfo ->
|
|
|
Executor.runOnMain {
|
|
|
itInfo?.let { info ->
|
|
|
+ info.userName = userInfo?.user?.nickName
|
|
|
SPUtils.setLoginUser(mContext!!, info)
|
|
|
}
|
|
|
callBack.invoke(it, itInfo, userInfo)
|