diff --git a/app/Services/Gateway/IDtPay.php b/app/Services/Gateway/IDtPay.php index a06129d4..590d0111 100644 --- a/app/Services/Gateway/IDtPay.php +++ b/app/Services/Gateway/IDtPay.php @@ -80,11 +80,6 @@ class IDtPay extends AbstractPayment public function notify($request, $response, $args) { - $filepath = '/tmp/tg_' . "debug" . '.txt'; - $fh = fopen($filepath, 'w+'); - $string = "asdfasdfasdfasdf"; - fwrite($fh, $string); - fclose($fh); $pid = $_GET['out_trade_no']; $p = Paylist::where('tradeno', '=', $pid)->first(); if ($p->status == 1) { diff --git a/config/routes.php b/config/routes.php index eeedec33..45468d9a 100644 --- a/config/routes.php +++ b/config/routes.php @@ -160,6 +160,7 @@ $app->group('/user', function () { })->add(new Auth()); $app->group('/payment', function () { + $this->get('/notify', App\Services\Payment::class . ':notify'); $this->post('/notify', App\Services\Payment::class . ':notify'); $this->post('/notify/{type}', App\Services\Payment::class . ':notify'); $this->post('/status', App\Services\Payment::class . ':getStatus');