Răsfoiți Sursa

fix(wechat): 修复订单发货状态查询异常处理

- 将 throw_logic_exception 的 status 参数改为 code 参数
- 保持错误日志记录的一致性
- 确保异常抛出时使用正确的参数名
runphp 4 luni în urmă
părinte
comite
33132227df
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/Service/ExpressService.php

+ 1 - 1
src/Service/ExpressService.php

@@ -45,7 +45,7 @@ class ExpressService
         if ($response->isFailed()) {
             $responseData = $response->toArray();
             Log::error('查询订单发货状态失败{transaction_id}{response}', ['transaction_id' => $transactionID, 'response' => json_encode($responseData)]);
-            throw_logic_exception(msg: '查询订单发货状态失败', status: $responseData['errcode']);
+            throw_logic_exception(msg: '查询订单发货状态失败', code: $responseData['errcode']);
         }
         return $response->toArray()['order'];
     }