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

update: payment service

tokumeikoi преди 3 години
родител
ревизия
40d757dda3
променени са 3 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 1
      app/Http/Controllers/Guest/PaymentController.php
  2. 0 2
      app/Services/PaymentService.php
  3. 0 0
      public/assets/admin/umi.js

+ 1 - 1
app/Http/Controllers/Guest/PaymentController.php

@@ -20,7 +20,7 @@ class PaymentController extends Controller
             if (!$this->handle($verify['trade_no'], $verify['callback_no'])) {
                 abort(500, 'handle error');
             }
-            die(isset($paymentService->customResult) ? $paymentService->customResult : 'success');
+            die(isset($verify['custom_result']) ? $verify['custom_result'] : 'success');
         } catch (\Exception $e) {
             abort(500, 'fail');
         }

+ 0 - 2
app/Services/PaymentService.php

@@ -8,7 +8,6 @@ use App\Models\Payment;
 class PaymentService
 {
     public $method;
-    public $customResult;
     protected $class;
     protected $config;
     protected $payment;
@@ -29,7 +28,6 @@ class PaymentService
             $this->config['notify_domain'] = $payment['notify_domain'];
         };
         $this->payment = new $this->class($this->config);
-        if (isset($this->payment->customResult)) $this->customResult = $this->payment->customResult;
     }
 
     public function notify($params)

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
public/assets/admin/umi.js


Някои файлове не бяха показани, защото твърде много файлове са промени