zhengyiming
2025-03-28 8bb9173a95a87e3ceab4f48b5b34041af38b7c70
apps/taro/src/stores/modules/user.ts
@@ -21,6 +21,8 @@
import { getAccountInfoFromAccessToken, AccountInfo, setOSSLink } from '@life-payment/utils';
import DefaultAvatar from '@/assets/components/icon-default-avatar.png';
import { myClient } from '@/constants/query';
import { blLifeRecharge } from '@/utils/blLifeRecharge';
import { LifePayPhoneMesssageCodeLoginOutput } from '@life-payment/core-vue';
interface UserState {
  userInfo?: Nullable<API.IdentityModelTokenCacheItem>;
@@ -38,6 +40,8 @@
  wxCode?: string;
  wxOpenId?: string;
  virtualUserInfo?: LifePayPhoneMesssageCodeLoginOutput;
}
const goAuthorization = debounce(
@@ -174,6 +178,7 @@
    async loginVirtualSuccess(virtualUserRes: LoginVirtualRes) {
      try {
        this.setVirtualUserId(virtualUserRes);
        this.getCurrentUserInfo();
      } catch (error) {}
    },
@@ -218,9 +223,10 @@
    async getCurrentUserInfo() {
      try {
        // let res = await userServices.getUserInfo({ showLoading: false });
        // let res = await blLifeRecharge.accountModel.getUserInfo(this.virtualUserId);
        // if (res) {
        //   this.setUserDetail(res);
        //   // this.setUserDetail(res);
        //   this.virtualUserInfo = res;
        //   this.firstGetUserDetail = false;
        // }
      } catch (error) {}