@ -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) {
@ -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');