test_lgq/niucloud/app/adminapi/route/pay.php

56 lines
2.1 KiB
PHP
Raw Permalink Normal View History

2024-01-24 17:36:08 +08:00
<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
use app\adminapi\middleware\AdminCheckRole;
use app\adminapi\middleware\AdminCheckToken;
use app\adminapi\middleware\AdminLog;
use think\facade\Route;
/**
* 支付相关路由
*/
Route::group('pay', function () {
/***************************************************** 支付渠道 *************************************************/
//渠道列表
Route::get('channel/lists', 'pay.PayChannel/lists');
//渠道设置
Route::post('channel/set/:channel/:type', 'pay.PayChannel/set');
//通过渠道获取支付配置
Route::get('channel/lists/:channel', 'pay.PayChannel/getListByChannel');
//转账设置
Route::post('channel/set/transfer', 'pay.PayChannel/setTransfer');
//多渠道设置
Route::post('channel/set/all', 'pay.PayChannel/setAll');
// 支付审核
Route::get('audit', 'pay.Pay/audit');
// 审核通过
Route::put('pass/:out_trade_no', 'pay.Pay/pass');
// 审核拒绝
Route::put('refuse/:out_trade_no', 'pay.Pay/refuse');
// 支付单据详情
Route::get('detail/:id', 'pay.Pay/detail');
/***************************************************** 退款 *************************************************/
//退款列表
Route::get('refund', 'pay.PayRefund/pages');
//退款详情
Route::get('refund/:refund_no', 'pay.PayRefund/detail');
//退款方式
Route::get('refund/type', 'pay.PayRefund/getRefundType');
//退款转账
Route::post('refund/transfer', 'pay.PayRefund/transfer');
})->middleware([
AdminCheckToken::class,
AdminCheckRole::class,
AdminLog::class
]);