mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-22 03:32:47 +08:00
30 lines
497 B
PHP
30 lines
497 B
PHP
<?php
|
|
|
|
namespace App\Http\Web\Controllers;
|
|
|
|
use App\Services\Pay\Wxpay as WxpayService;
|
|
use App\Traits\Response as ResponseTrait;
|
|
|
|
class WxpayController extends \Phalcon\Mvc\Controller
|
|
{
|
|
|
|
use ResponseTrait;
|
|
|
|
/**
|
|
* @Post("/wxpay/notify", name="web.wxpay.notify")
|
|
*/
|
|
public function notifyAction()
|
|
{
|
|
$wxpayService = new WxpayService();
|
|
|
|
$response = $wxpayService->notify();
|
|
|
|
if (!$response) exit;
|
|
|
|
$response->send();
|
|
|
|
exit;
|
|
}
|
|
|
|
}
|