From 0c0b191b972f965d2d0aa703783fe32efb6d6337 Mon Sep 17 00:00:00 2001 From: gaofeng <1212121@qq.com> Date: Thu, 13 Aug 2026 10:30:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/miniapi/controller/CustomerCenter.php | 5 +++++ route/app.php | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/miniapi/controller/CustomerCenter.php b/app/miniapi/controller/CustomerCenter.php index b6c5f21..79f6ec5 100644 --- a/app/miniapi/controller/CustomerCenter.php +++ b/app/miniapi/controller/CustomerCenter.php @@ -68,6 +68,11 @@ final class CustomerCenter extends Base public function applicant() { + $action = strtolower(trim((string)$this->request->param('_action', ''))); + if ($action === 'save') { + return $this->saveApplicant(); + } + $userId = $this->requireLogin(); if (!is_int($userId)) { return $userId; diff --git a/route/app.php b/route/app.php index 6f3b8b2..29bde63 100644 --- a/route/app.php +++ b/route/app.php @@ -37,7 +37,6 @@ Route::group('miniapi', function () { Route::get('customer-center/applicants', 'CustomerCenter/applicants'); Route::get('customer-center/applications', 'CustomerCenter/applications'); Route::get('customer-center/orders', 'CustomerCenter/orders'); - Route::post('customer-center/save-applicant', 'CustomerCenter/saveApplicant'); Route::post('customer-center/applicant/save', 'CustomerCenter/saveApplicant'); Route::post('customer-center/applicant/remove', 'CustomerCenter/removeApplicant'); Route::post('customer-center/applicant', 'CustomerCenter/applicant')->completeMatch();