1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-20 19:07:03 +08:00
2020-03-16 15:33:36 +08:00

60 lines
981 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("/wechat/notify", name="home.wechat.notify")
*/
public function wechatNotifyAction()
{
$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()
{
}
}