mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2026-05-07 01:01:10 +08:00
28 lines
812 B
PHP
28 lines
812 B
PHP
<?php
|
|
|
|
use think\facade\Route;
|
|
|
|
// 页面跳转支付
|
|
Route::rule('submit', 'Pay/submit');
|
|
// API支付
|
|
Route::rule('mapi', 'Pay/mapi');
|
|
// 收银台
|
|
Route::rule('/Pay/console/[:order_id]', '/Pay/console');
|
|
// 查询订单状态
|
|
Route::rule('getOrderState/[:order_id]', 'Pay/getOrderState');
|
|
// 监控新订单
|
|
Route::rule('checkOrder/[:pid]/[:sign]', 'Pay/checkOrder');
|
|
// 处理收款通知
|
|
Route::rule('payHeart', 'Pay/payHeart');
|
|
// 监听收款通知
|
|
Route::rule('checkPayResult', 'Pay/checkPayResult');
|
|
// 监听微信/支付宝收款通知
|
|
Route::rule('mpayNotify', 'Pay/mpayNotify');
|
|
// 验证支付结果
|
|
Route::rule('validatePayResult', 'Pay/validatePayResult');
|
|
|
|
// API多级控制器
|
|
Route::rule('api/:controller/:methon', 'api.:controller/:methon');
|
|
|
|
// 开发文档
|
|
Route::rule('doc', 'Index/doc'); |