zpc
|
8991118f8d
|
fix: 修复发货重试后台服务不执行的问题
- 使用 IServiceScopeFactory 解决 scoped 服务依赖问题
- IWechatService 是 scoped 服务,不能直接注入到 singleton 后台服务
- 每次处理订单时创建新的 scope 来解析 IWechatService
- 将检查间隔从 60 秒改为 30 秒
- 优化 RedisService.GetKeysAsync 使用实时连接状态检查
|
2026-02-10 17:22:38 +08:00 |
|
zpc
|
d4c15c8feb
|
feat: 添加微信发货重试后台服务
- 新增 ShippingRetryBackgroundService 后台服务
- 每60秒检查 Redis 中失败的发货订单
- 支持最多10次重试,重试间隔30秒
- IRedisService 添加 GetKeysAsync 方法支持模式匹配
- 解决支付完成后立即发货导致'支付单不存在'的问题
|
2026-02-10 16:45:06 +08:00 |
|
zpc
|
d9dc8e4a6e
|
fix: 发货时使用正确的商户配置
- WechatService 添加 IWechatPayConfigService 依赖
- GetMerchantConfigByOrderNoAsync 优先使用 WechatPayConfigService 获取商户配置
- 修复发货时使用错误商户导致 access_token 获取失败的问题
|
2026-02-10 15:41:54 +08:00 |
|
zpc
|
27613ab5b2
|
feat: 实现微信小程序发货信息录入功能
- IWechatService 添加 UploadShippingInfoAsync 接口
- WechatService 实现调用微信 upload_shipping_info API
- PaymentNotifyService 支付成功后自动调用发货接口
- 发货失败时保存到 Redis 等待重试(3天过期)
- 添加 WechatShippingRequest/WechatShippingResult 模型
|
2026-02-10 14:03:00 +08:00 |
|
zpc
|
fcceafe535
|
321
|
2026-02-08 01:21:54 +08:00 |
|
zpc
|
408c17af6c
|
312
|
2026-02-08 01:18:53 +08:00 |
|
zpc
|
4e1a57418a
|
21
|
2026-02-07 18:39:10 +08:00 |
|
zpc
|
2a52aacc0c
|
312
|
2026-02-07 18:19:22 +08:00 |
|
zpc
|
2550f6d4c2
|
refactor: 统一权益系统命名 VIP -> Equity
后端更改:
- 重命名数据库表: vip_levels -> equity_levels, vip_level_rewards -> equity_level_rewards, user_vip_rewards -> user_equity_rewards
- 重命名实体类: VipLevel -> EquityLevel, VipLevelReward -> EquityLevelReward, UserVipReward -> UserEquityReward
- 重命名 DTO: VipInfoResponse -> EquityInfoResponse, VipUserInfoDto -> EquityUserInfoDto, VipLevelDto -> EquityLevelDto
- 重命名服务: VipService -> EquityService, IVipService -> IEquityService
- 更新 API 端点: /vip_list -> /equity_list
- 移动命名空间: Models/Vip -> Models/Equity
- 删除重复的 VipController (与 QyLevelController 功能重复)
- 删除未使用的 equity_levels 和 equity_level_prizes 旧表实体
前端更改:
- 更新 API 调用: getVipList -> getEquityList
- 更新 vip.vue 页面使用新的 API 函数
保持兼容:
- JSON 响应字段名保持不变 (vip, last_vip, jin_du 等)
- 用户表 vip 字段保持不变
|
2026-02-05 18:21:07 +08:00 |
|
gpu
|
81fb507fab
|
321
|
2026-02-02 07:59:16 +08:00 |
|
zpc
|
e615859f9a
|
321
|
2026-01-28 22:02:26 +08:00 |
|
zpc
|
0f759066ad
|
fix: 修复发货接口支付商户配置不一致问题
|
2026-01-28 15:57:23 +08:00 |
|
zpc
|
144117e24d
|
refactor: 将图片上传服务移至Infrastructure层
- 移除 HoneyBox.Api 对 HoneyBox.Admin.Business 的引用
- 在 Core 层添加 IImageUploadService 接口
- 在 Infrastructure 层实现 CosImageUploadService
- 从数据库 Configs 表读取 COS 配置
- 在 InfrastructureModule 注册服务
|
2026-01-28 14:44:47 +08:00 |
|
zpc
|
77232bc303
|
32
|
2026-01-27 13:45:39 +08:00 |
|
zpc
|
11ee8d963c
|
231
|
2026-01-27 13:18:10 +08:00 |
|
zpc
|
53a61f6298
|
32
|
2026-01-27 12:01:58 +08:00 |
|
gpu
|
8485f32230
|
321
|
2026-01-25 21:20:46 +08:00 |
|
zpc
|
01213b21e1
|
321
|
2026-01-25 20:28:11 +08:00 |
|
zpc
|
434fe8f833
|
213
|
2026-01-25 19:10:31 +08:00 |
|
zpc
|
3fd4799459
|
321321
|
2026-01-25 16:04:50 +08:00 |
|
gpu
|
4fba70467d
|
feat: 实现发货运费支付功能
- IWechatService: 添加 CreatePayOrderAsync 方法和相关类型
- WechatService: 实现 Web 支付订单创建,生成订单号并记录到 OrderNotify
- WarehouseService: 发货时调用支付服务生成支付参数
- SendResultDto: 修改 Res 属性支持 Web 支付格式
- ServiceModule: 更新依赖注入配置
|
2026-01-24 11:30:13 +08:00 |
|
gpu
|
85f410db3b
|
feat: 实现抽奖逻辑调用 - 修复支付成功后无抽奖结果问题
- OrderService: 添加 ILotteryEngine 依赖,余额支付时调用抽奖
- PaymentNotifyService: 添加 ILotteryEngine 依赖,微信支付回调时调用抽奖
- ServiceModule: 更新依赖注入配置
- 支持普通抽奖(一番赏等)和无限赏两种模式
|
2026-01-22 01:30:54 +08:00 |
|
gpu
|
841533635c
|
调整文件夹层级
|
2026-01-04 01:47:02 +08:00 |
|