Files
wangchen147 0864a7a502 1.2.3
注意事项:本次升级后将不再支持调用官方的云编译服务,如需使用云编译功能需使用官方提供的第三方云编译程序自行启用云编译服务。

修复 本地开发时会验证授权信息的问题
优化 本版本更新后卸载插件会同时删除本地文件
修复 支付回调失败问题
优化 云编译失败后增加异常分析,可排除异常插件后重新编译
修复 云编译没有清除旧的编译文件
2026-05-08 14:30:00 +08:00

55 lines
1.8 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
use app\api\middleware\ApiChannel;
use app\api\middleware\ApiCheckToken;
use app\api\middleware\ApiLog;
use think\facade\Route;
//支付异步回调
Route::any('pay/notify/:site_id/:channel/:type/:action', 'pay.Pay/notify')
->middleware(ApiChannel::class)
->middleware(ApiLog::class);
/**
* 路由
*/
Route::group('pay',function () {
//找朋友帮忙付支付信息
Route::get('friendspay/info/:trade_type/:trade_id', 'pay.Pay/friendspayInfo');
})->middleware(ApiChannel::class)
->middleware(ApiCheckToken::class, false)//表示验证登录
->middleware(ApiLog::class);
Route::group('pay',function () {
//去支付
Route::post('', 'pay.Pay/pay');
//支付信息
Route::get('info/:trade_type/:trade_id', 'pay.Pay/info');
//获取支付类型
Route::get('type/:trade_type', 'pay.Pay/getPayType');
//支付关闭
Route::post('close', 'pay.Pay/close');
})->middleware(ApiChannel::class)
->middleware(ApiCheckToken::class, true)//表示验证登录
->middleware(ApiLog::class);
Route::group('transfer',function () {
//去支付
Route::post('confirm/:transfer_no', 'pay.Pay/pay');
})->middleware(ApiChannel::class)
->middleware(ApiCheckToken::class, true)//表示验证登录
->middleware(ApiLog::class);