提交
This commit is contained in:
@@ -68,6 +68,11 @@ final class CustomerCenter extends Base
|
|||||||
|
|
||||||
public function applicant()
|
public function applicant()
|
||||||
{
|
{
|
||||||
|
$action = strtolower(trim((string)$this->request->param('_action', '')));
|
||||||
|
if ($action === 'save') {
|
||||||
|
return $this->saveApplicant();
|
||||||
|
}
|
||||||
|
|
||||||
$userId = $this->requireLogin();
|
$userId = $this->requireLogin();
|
||||||
if (!is_int($userId)) {
|
if (!is_int($userId)) {
|
||||||
return $userId;
|
return $userId;
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ Route::group('miniapi', function () {
|
|||||||
Route::get('customer-center/applicants', 'CustomerCenter/applicants');
|
Route::get('customer-center/applicants', 'CustomerCenter/applicants');
|
||||||
Route::get('customer-center/applications', 'CustomerCenter/applications');
|
Route::get('customer-center/applications', 'CustomerCenter/applications');
|
||||||
Route::get('customer-center/orders', 'CustomerCenter/orders');
|
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/save', 'CustomerCenter/saveApplicant');
|
||||||
Route::post('customer-center/applicant/remove', 'CustomerCenter/removeApplicant');
|
Route::post('customer-center/applicant/remove', 'CustomerCenter/removeApplicant');
|
||||||
Route::post('customer-center/applicant', 'CustomerCenter/applicant')->completeMatch();
|
Route::post('customer-center/applicant', 'CustomerCenter/applicant')->completeMatch();
|
||||||
|
|||||||
Reference in New Issue
Block a user