From 8bb9173a95a87e3ceab4f48b5b34041af38b7c70 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期五, 28 三月 2025 15:23:14 +0800
Subject: [PATCH] fix: 四期需求
---
packages/core/src/lifeRecharge.ts | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/packages/core/src/lifeRecharge.ts b/packages/core/src/lifeRecharge.ts
index 8c1cb2c..409801a 100644
--- a/packages/core/src/lifeRecharge.ts
+++ b/packages/core/src/lifeRecharge.ts
@@ -2,21 +2,29 @@
BlLifeRechargeServices,
PhoneMesssageCodeLoginInput,
RequestConfig,
+ ChannelOutput,
} from './lifeRechargeServices';
import { BlLifeRechargeOptions } from './types';
import { LifeRechargeConstants } from './lifeRechargeConstants';
import { BlLifeRechargeAccountModel } from './lifeRechargeAccountModel';
+import { LifeRechargeListener } from './listener';
export class BlLifeRecharge<TResponse = any, TRequestOptions = any> {
services: BlLifeRechargeServices<TResponse, TRequestOptions>;
accountModel: BlLifeRechargeAccountModel;
+ listener: LifeRechargeListener;
static constants = LifeRechargeConstants;
constants = LifeRechargeConstants;
+ /**鐢ㄦ埛鎵�鏈夌殑娓犻亾 */
+ userChannles = [] as ChannelOutput[];
+ isBackClientUser: boolean;
+
constructor(options: BlLifeRechargeOptions<TResponse, TRequestOptions>) {
+ this.listener = new LifeRechargeListener();
this.services = new BlLifeRechargeServices(this, options);
- this.accountModel = new BlLifeRechargeAccountModel({
+ this.accountModel = new BlLifeRechargeAccountModel(this, {
userId: options.userId,
phoneNumber: options.phoneNumber,
channlesNum: options.channlesNum,
@@ -37,6 +45,7 @@
loginout() {
this.accountModel.setUserId('');
this.accountModel.setPhoneNumber('');
+ this.accountModel.setUserChannles([]);
}
isLogin() {
--
Gitblit v1.9.1