From c24cdd854e258712408a7904bdb401c49e3f07c1 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 28 八月 2025 13:09:08 +0800
Subject: [PATCH] fix: 修改通道充值提示语
---
packages/core/src/lifeRechargeAccountModel.ts | 27 ++++++++++++++++++++-------
1 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/packages/core/src/lifeRechargeAccountModel.ts b/packages/core/src/lifeRechargeAccountModel.ts
index 42a4afc..952fec3 100644
--- a/packages/core/src/lifeRechargeAccountModel.ts
+++ b/packages/core/src/lifeRechargeAccountModel.ts
@@ -8,6 +8,12 @@
userId = '';
phoneNumber = '';
channlesNum = '';
+ promoterIdNumber = '';
+
+ /**鐢ㄦ埛鎵�鏈夌殑娓犻亾 */
+ userChannles = [] as ChannelOutput[];
+ isBackClientUser: boolean;
+ isGetUserInfo = false;
constructor(
ctx: BlLifeRecharge<TResponse, TRequestOptions>,
@@ -23,25 +29,27 @@
setUserId(userId: string) {
this.userId = userId;
this.ctx.listener.fireEvent('update', this.ctx);
- if (userId) {
- this.getUserInfo(userId);
- }
+ // if (userId) {
+ // this.getUserInfo(userId);
+ // }
}
- async getUserInfo(userId: string) {
+ async getUserInfo(userId?: string) {
try {
let res = await this.ctx.services.lifePayUserMesssageByIduser(
{
- id: userId,
+ id: userId || this.userId,
},
{
showLoading: false,
}
);
- this.ctx.isBackClientUser = res.isBackClientUser;
if (res && res.isBackClientUser) {
this.setUserChannles(res.channlesNum ?? []);
}
+ this.isBackClientUser = res.isBackClientUser;
+ this.promoterIdNumber = res.promoterIdNumber;
+ this.isGetUserInfo = true;
return res;
} catch (error) {
console.log('error: ', error);
@@ -57,7 +65,12 @@
this.ctx.listener.fireEvent('update', this.ctx);
}
setUserChannles(userChannles: ChannelOutput[]) {
- this.ctx.userChannles = userChannles;
+ this.userChannles = userChannles;
+ this.ctx.listener.fireEvent('update', this.ctx);
+ }
+
+ setUserPromoterIdNumber(promoterIdNumber: string) {
+ this.promoterIdNumber = promoterIdNumber;
this.ctx.listener.fireEvent('update', this.ctx);
}
}
--
Gitblit v1.9.1