Преглед на файлове

feat(payment): 实现微信订单发货状态更新功能

- 在 PaymentRecordService 中注入 PaymentProvider 依赖
- 实现 updateWechatOrder 方法以查询并更新微信订单状态
- 根据订单类型上传相应的发货信息到微信支付系统
- 添加微信订单状态变更的日志记录
- 补充微信订单状态枚举值的比较逻辑
- 完善同城配送和虚拟订单的发货信息上传处理
runphp преди 4 месеца
родител
ревизия
346d285485
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      src/Service/ExpressService.php

+ 4 - 0
src/Service/ExpressService.php

@@ -33,6 +33,8 @@ class ExpressService
 
     /**
      * 查询订单发货状态
+     *
+     * @link https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/order-shipping/order-shipping.html#%E4%B8%89%E3%80%81%E6%9F%A5%E8%AF%A2%E8%AE%A2%E5%8D%95%E5%8F%91%E8%B4%A7%E7%8A%B6%E6%80%81
      */
     public function queryOrder(string $transactionID): array
     {
@@ -50,6 +52,8 @@ class ExpressService
      * 发货信息录入
      *
      * 使用微信支付单号
+     *
+     * @link https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/order-shipping/order-shipping.html#%E4%B8%80%E3%80%81%E5%8F%91%E8%B4%A7%E4%BF%A1%E6%81%AF%E5%BD%95%E5%85%A5%E6%8E%A5%E5%8F%A3
      */
     public function uploadShippingInfo(string $transactionID): array
     {