This commit is contained in:
gaofeng
2026-08-13 10:30:54 +08:00
parent a15eda4138
commit 0c0b191b97
2 changed files with 5 additions and 1 deletions

View File

@@ -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;

View File

@@ -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();