laowu 1 день назад
Родитель
Сommit
575e371a91
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      app/Http/Controllers/Api/PayPlusController.php

+ 5 - 0
app/Http/Controllers/Api/PayPlusController.php

@@ -50,6 +50,11 @@ class PayPlusController implements PayMentInterFace
         Util::WriteLog('PayPlus', 'pay notify: ' . $content);
         Util::WriteLog('PayPlus', 'pay notify header: ' . json_encode($request->headers->all()));
 
+        $OrderId = $post['data']['reference_id'] ?? '';
+        if (str_starts_with($OrderId, 'tx')) {
+            return $this->cash_notify($request);
+        }
+
         $orderSn = $post['data']['platform_order_id'] ?? '';
         if ($orderSn === '') {
             return 'success';