1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-22 03:32:47 +08:00
2019-12-13 00:10:10 +08:00

60 lines
978 B
PHP

<?php
namespace App\Http\Home\Controllers;
use App\Services\Alipay as AlipayService;
class NotifyController extends Controller
{
/**
* @Post("/alipay/notify", name="home.alipay.notify")
*/
public function alipayNotifyAction()
{
$alipayService = new AlipayService();
$response = $alipayService->handleNotify();
if (!$response) exit;
$response->send();
exit;
}
/**
* @Post("/wxpay/notify", name="home.wxpay.notify")
*/
public function wxpayNotifyAction()
{
$alipayService = new AlipayService();
$response = $alipayService->handleNotify();
if (!$response) exit;
$response->send();
exit;
}
/**
* @Post("/vod/notify", name="home.vod.notify")
*/
public function vodNotifyAction()
{
}
/**
* @Post("/live/notify", name="home.live.notify")
*/
public function liveNotifyAction()
{
}
}