From a5fb1d46e746ba990eae2dc02a4687e33d999130 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Thu, 13 Apr 2023 11:19:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95=E9=80=80?= =?UTF-8?q?=E6=AC=BE=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controller/TestController.php | 1 + app/Utils/Auth.php | 3 ++- config/routes.php | 8 +++++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/Controller/TestController.php b/app/Controller/TestController.php index 5021215..b3d22b7 100644 --- a/app/Controller/TestController.php +++ b/app/Controller/TestController.php @@ -754,6 +754,7 @@ class TestController extends AbstractController dump($result); } + // 退款 public function test_13(){ $out_trade_no = $this->request->input('out_trade_no'); $params = array(); diff --git a/app/Utils/Auth.php b/app/Utils/Auth.php index 39f6bf9..78a18bb 100644 --- a/app/Utils/Auth.php +++ b/app/Utils/Auth.php @@ -30,7 +30,8 @@ class Auth "/callback/im" => "post", // im回调 "/callback/platform/logistics" => "post", // 处方平台物流回调 "/callback/logistics" => "post", // 快递100订阅回调 - "/test" => "get", // 测试 + + "/test/test_13" => "get", // 测试 ]; } diff --git a/config/routes.php b/config/routes.php index 3d3d302..2ef249a 100644 --- a/config/routes.php +++ b/config/routes.php @@ -596,7 +596,13 @@ Router::addGroup('/user', function () { Router::get('/case', [InquiryController::class, 'getPatientInquiryCase']); -Router::get('/test', [TestController::class, 'test']); + + +// 测试使用 +Router::addGroup('/test', function () { + // 模拟退款 + Router::get('/test_13', [TestController::class, 'test_13']); +}); // 地址管理 Router::addGroup('/address', function () {