21 lines
497 B
PHP
21 lines
497 B
PHP
<?php
|
|
|
|
namespace app\controller\open;
|
|
|
|
use app\support\ShouqianbaPaymentService;
|
|
use support\Request;
|
|
|
|
class ShouqianbaPaymentController
|
|
{
|
|
public function notify(Request $request)
|
|
{
|
|
$service = new ShouqianbaPaymentService();
|
|
try {
|
|
$service->handleNotification($request->rawBody());
|
|
return json($service->notificationResponse(true));
|
|
} catch (\Throwable $e) {
|
|
return json($service->notificationResponse(false));
|
|
}
|
|
}
|
|
}
|