Selaa lähdekoodia

补充记录日志操作

萤火科技 1 vuosi sitten
vanhempi
säilyke
6b454522b5

+ 1 - 1
app/common/library/payment/gateway/driver/wechat/V2.php

@@ -176,7 +176,7 @@ class V2
                 return false;
             }
             // 记录日志
-            Log::append('Wechat-notify', ['message' => '微信异步回调验证成功']);
+            Log::append('Wechat-notify', ['message' => '微信异步回调验证成功', 'notifyParams' => $this->notifyParams]);
         } catch (\EasyWeChat\Payment\Kernel\Exceptions\InvalidSignException $e) {
             // 签名验证错误
             $this->notifyPaidError('签名验证错误');

+ 1 - 1
app/common/model/PaymentTrade.php

@@ -49,7 +49,7 @@ class PaymentTrade extends BaseModel
     {
         $detail = static::detail(['out_trade_no' => $outTradeNo]);
         if (empty($detail)) {
-            throwError('第三方支付交易记录不存在');
+            throwError("第三方支付交易记录不存在 {$outTradeNo}");
         }
         return $detail;
     }

+ 1 - 1
app/common/service/order/PaySuccess.php

@@ -143,7 +143,7 @@ class PaySuccess extends BaseService
             !isset($this->paymentData['tradeNo']) && throwError('PaymentData not found');
         }
         // 记录日志
-        Log::append('PaySuccess', [
+        Log::append('PaySuccess --handle', [
             'orderNo' => $this->orderNo, 'method' => $this->method,
             'tradeId' => $this->tradeId, 'paymentData' => $this->paymentData
         ]);