mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update: payment service
This commit is contained in:
parent
980f1e3093
commit
40d757dda3
@ -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');
|
||||
}
|
||||
|
@ -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)
|
||||
|
2
public/assets/admin/umi.js
vendored
2
public/assets/admin/umi.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user