From dfb8f993f691eedc558d52347b1a93a105f6b0d2 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期一, 03 三月 2025 16:43:14 +0800 Subject: [PATCH] fix: 对接 --- packages/core/src/lifeRecharge.ts | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/core/src/lifeRecharge.ts b/packages/core/src/lifeRecharge.ts index a041d82..26c02a5 100644 --- a/packages/core/src/lifeRecharge.ts +++ b/packages/core/src/lifeRecharge.ts @@ -3,18 +3,18 @@ PhoneMesssageCodeLoginInput, RequestConfig, } from './lifeRechargeServices'; -import { IRequest, BlLifeRechargeOptions } from './types'; +import { BlLifeRechargeOptions } from './types'; import { LifeRechargeConstants } from './lifeRechargeConstants'; import { BlLifeRechargeAccountModel } from './lifeRechargeAccountModel'; -export class BlLifeRecharge<T extends IRequest = IRequest> { - services: BlLifeRechargeServices<T>; +export class BlLifeRecharge<TResponse = any, TRequestOptions = any> { + services: BlLifeRechargeServices<TResponse, TRequestOptions>; accountModel: BlLifeRechargeAccountModel; static constants = LifeRechargeConstants; constants = LifeRechargeConstants; - constructor(options: BlLifeRechargeOptions<T>) { + constructor(options: BlLifeRechargeOptions<TResponse, TRequestOptions>) { this.services = new BlLifeRechargeServices(options); this.accountModel = new BlLifeRechargeAccountModel({ userId: options.userId, -- Gitblit v1.9.1