feat: 删除假支付逻辑,全面接入微信支付

- 删除 order.service.ts 中的 pay() 假支付方法
- 修复支付模块结构,移动到正确路径
- 重构退款服务使用统一的 WechatPayService
- 完善退款回调处理(恢复库存+记录财务)
- 修复小程序支付调用,使用 wxPay() 方法
- WechatPayService 从数据库系统密钥读取配置
- 移除 .env.example 中的微信支付配置(已迁移到数据库)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-06-03 20:33:26 +08:00
parent 6b262ccd9d
commit 26ebb6f1d2
8 changed files with 127 additions and 322 deletions
@@ -0,0 +1,11 @@
import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { WechatPayService } from './wechat-pay.service';
import { SecretModule } from '@/modules/shared/secret/secret.module';
@Module({
imports: [ConfigModule, SecretModule],
providers: [WechatPayService],
exports: [WechatPayService],
})
export class PaymentModule {}