From 1910e9f27373b8b4da75f076762025ceb3419965 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 12 六月 2025 15:40:50 +0800
Subject: [PATCH] fix: 暂时隐藏电信充值通道
---
apps/taro/src/hooks/user.ts | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/apps/taro/src/hooks/user.ts b/apps/taro/src/hooks/user.ts
index 981d80e..0125a2e 100644
--- a/apps/taro/src/hooks/user.ts
+++ b/apps/taro/src/hooks/user.ts
@@ -58,6 +58,7 @@
// const { virtualUserInfo } = useVirtualUserInfo();
const isChannelAccount = computed(() => blLifeRecharge.accountModel.isBackClientUser);
+ const userPromoterIdNumber = computed(() => blLifeRecharge.accountModel.promoterIdNumber);
return {
user: userInfo,
@@ -69,6 +70,7 @@
wxCode,
wxOpenId,
isChannelAccount,
+ userPromoterIdNumber,
// virtualUserInfo,
};
}
@@ -172,12 +174,12 @@
const { wxCode, wxOpenId } = useUser();
const { getLifePayWxIndentity } = useLifePayWxIndentity();
- async function ensureOpenId() {
+ async function ensureOpenId(): Promise<string> {
if (wxOpenId.value) {
return wxOpenId.value;
} else {
let rea = await getLifePayWxIndentity(wxCode.value);
- return rea.openId ? rea.openId : wxOpenId.value;
+ return rea.openId ? rea.openId : await ensureOpenId();
}
}
--
Gitblit v1.9.1