wesmiler 5 mesi fa
parent
commit
6bdced2d58
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/Http/Controllers/Api/v1/NotifyController.php

+ 1 - 1
app/Http/Controllers/Api/v1/NotifyController.php

@@ -107,7 +107,7 @@ class NotifyController extends webApp
 
             // 回调处理
             if (PaymentService::make()->catchPayNotify($productId, $data)) {
-                RedisService::set("caches:payments:payNotify_{$productId}:success_" . $key, ['all' => request()->all(), 'product_id' => $productId, 'result' => $result], 7200);
+                RedisService::set("caches:payments:payNotify_{$productId}:success_" . $key, ['msg'=>PaymentService::make()->getError(),'all' => request()->all(), 'product_id' => $productId, 'result' => $result], 7200);
                 logger()->channel($channel)->info("【{$date} 支付回调】回调成功:" . json_encode(['data' => $data,'product_id' => $productId],256));
                 return response('success');
             } else {