获取钱包信息接口在获取到完整用户信息后再请求

This commit is contained in:
huangjian
2021-08-13 14:36:09 +08:00
parent d6f3cecea3
commit ba1543776f

View File

@@ -19,6 +19,7 @@ import com.yizhuan.xchat_android_core.pay.event.ChargeCustomNotificationEvent;
import com.yizhuan.xchat_android_core.pay.event.FirstRechargeEvent;
import com.yizhuan.xchat_android_core.pay.event.GetWalletInfoEvent;
import com.yizhuan.xchat_android_core.pay.event.UpdateWalletInfoEvent;
import com.yizhuan.xchat_android_core.user.event.LoginUserInfoUpdateEvent;
import com.yizhuan.xchat_android_core.utils.net.RxHelper;
import com.yizhuan.xchat_android_library.net.rxnet.RxNet;
import com.yizhuan.xchat_android_library.utils.LogUtil;
@@ -102,7 +103,7 @@ public class PayModel extends BaseModel implements IPayModel {
}
@Subscribe(threadMode = ThreadMode.MAIN)
public void onLoginEvent(LoginEvent event) {
public void onLoginEvent(LoginUserInfoUpdateEvent event) {
getWalletInfo(AuthModel.get().getCurrentUid(), CACHE_STRATEGY_NO_CACHE).subscribe();
}