|
@@ -6,7 +6,7 @@ import { PaymentStatus, RefundRequest, RefundResponse } from '../entities/paymen
|
|
|
import { PaymentCreateResponse } from '../entities/payment.types.js';
|
|
import { PaymentCreateResponse } from '../entities/payment.types.js';
|
|
|
import { GenericCrudService } from '@d8d/shared-crud';
|
|
import { GenericCrudService } from '@d8d/shared-crud';
|
|
|
import { SystemConfigServiceMt } from '@d8d/core-module-mt/system-config-module-mt';
|
|
import { SystemConfigServiceMt } from '@d8d/core-module-mt/system-config-module-mt';
|
|
|
-import { OrderMtService, OrderMt } from '@d8d/orders-module-mt';
|
|
|
|
|
|
|
+import { OrderMt } from '@d8d/orders-module-mt';
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 微信支付服务 - 多租户版本
|
|
* 微信支付服务 - 多租户版本
|
|
@@ -15,7 +15,6 @@ import { OrderMtService, OrderMt } from '@d8d/orders-module-mt';
|
|
|
export class PaymentMtService extends GenericCrudService<PaymentMtEntity> {
|
|
export class PaymentMtService extends GenericCrudService<PaymentMtEntity> {
|
|
|
private wxPay: WxPay;
|
|
private wxPay: WxPay;
|
|
|
private readonly systemConfigService: SystemConfigServiceMt;
|
|
private readonly systemConfigService: SystemConfigServiceMt;
|
|
|
- private readonly orderMtService: OrderMtService;
|
|
|
|
|
|
|
|
|
|
constructor(
|
|
constructor(
|
|
|
dataSource: DataSource
|
|
dataSource: DataSource
|
|
@@ -25,7 +24,6 @@ export class PaymentMtService extends GenericCrudService<PaymentMtEntity> {
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
this.systemConfigService = new SystemConfigServiceMt(dataSource);
|
|
this.systemConfigService = new SystemConfigServiceMt(dataSource);
|
|
|
- this.orderMtService = new OrderMtService(dataSource);
|
|
|
|
|
|
|
|
|
|
// 微信支付SDK将在需要时动态初始化
|
|
// 微信支付SDK将在需要时动态初始化
|
|
|
this.wxPay = null as any;
|
|
this.wxPay = null as any;
|