From a49b52a3e264695a80672775ab96a46f49a6668a Mon Sep 17 00:00:00 2001 From: gaofeng <1212121@qq.com> Date: Tue, 1 Sep 2026 14:55:59 +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 --- .example.env | 14 ++++++ app/miniapi/route/app.php | 49 +++++++++++++++++++ ...customer_center_route_order_self_check.php | 2 +- tests/evus_correction_route_self_check.php | 18 ++++++- 4 files changed, 80 insertions(+), 3 deletions(-) diff --git a/.example.env b/.example.env index d90c573..4b4e580 100644 --- a/.example.env +++ b/.example.env @@ -15,3 +15,17 @@ WECHAT_MINI_APPID = your_jinan_mini_appid WECHAT_MINI_SECRET = your_jinan_mini_secret WECHAT_MINI_APPID_BJ = your_beijing_mini_appid WECHAT_MINI_SECRET_BJ = your_beijing_mini_secret + +APP_ANDROID_LATEST_VERSION_CODE = 0 +APP_ANDROID_LATEST_VERSION_NAME = +APP_ANDROID_MINIMUM_VERSION_CODE = 0 +APP_ANDROID_UPDATE_GATEWAY_URL = https://miniapi.jzvisa.cn/miniapi/app/update +APP_ANDROID_FALLBACK_URL = +APP_ANDROID_CHANGELOG = +APP_ANDROID_FORCE_UPDATE = false +APP_ANDROID_STORE_OFFICIAL_URL = +APP_ANDROID_STORE_HUAWEI_URL = +APP_ANDROID_STORE_XIAOMI_URL = +APP_ANDROID_STORE_OPPO_URL = +APP_ANDROID_STORE_VIVO_URL = +APP_ANDROID_STORE_TENCENT_URL = diff --git a/app/miniapi/route/app.php b/app/miniapi/route/app.php index 35efb8f..f9ab67f 100644 --- a/app/miniapi/route/app.php +++ b/app/miniapi/route/app.php @@ -1,4 +1,13 @@ +// +---------------------------------------------------------------------- use think\facade\Route; @@ -12,3 +21,43 @@ Route::group('app', function () { Route::get('visas/:product_id', 'AppCatalog/detail'); Route::get('visas', 'AppCatalog/visas'); }); + +Route::group(function () { + Route::get('index/home', 'Index/home'); + Route::get('index/about', 'Index/about'); + Route::get('index/legal', 'Index/legal'); + Route::get('index/packages', 'Index/packages'); + Route::get('index/countries', 'Index/countries'); + + Route::post('auth/sendSms', 'Auth/sendSms'); + Route::post('auth/login', 'Auth/login'); + Route::post('auth/wxPhoneLogin', 'Auth/wxPhoneLogin'); + Route::get('auth/me', 'Auth/me'); + + Route::get('news/lists', 'News/lists'); + Route::get('news/detail', 'News/detail'); + + Route::get('help/faqs', 'Help/faqs'); + + Route::get('order/lists', 'Order/lists'); + Route::get('order/latest-evus', 'Order/latestEvus'); + Route::get('order/detail', 'Order/detail'); + Route::post('order/pay', 'Order/pay'); + Route::post('order/addInvoice', 'Order/addInvoice'); + + 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/applicant/save', 'CustomerCenter/saveApplicant'); + Route::post('customer-center/applicant/remove', 'CustomerCenter/removeApplicant'); + Route::post('customer-center/applicant', 'CustomerCenter/applicant')->completeMatch(); + + Route::get('ocr/signature', 'Ocr/signature'); + Route::post('upload/image', 'Upload/image'); + + Route::get('evus/correction', 'EvusCorrection/detail'); + Route::post('evus/correction/submit', 'EvusCorrection/submit'); + Route::post('evus/lookup', 'Evus/lookup'); + Route::post('evus/apply', 'Evus/apply'); + Route::post('esta/apply', 'Esta/apply'); +})->namespace('app\\miniapi\\controller'); diff --git a/tests/customer_center_route_order_self_check.php b/tests/customer_center_route_order_self_check.php index cc3eb77..7e18894 100644 --- a/tests/customer_center_route_order_self_check.php +++ b/tests/customer_center_route_order_self_check.php @@ -1,7 +1,7 @@ '[A-Za-z0-9_-]+']);") + || !str_contains($routes, "Route::group('app', function () {") + || !str_contains($routes, "Route::get('bootstrap', 'AppCatalog/bootstrap');") + || !str_contains($routes, "Route::get('visas/:product_id', 'AppCatalog/detail');") +) { + throw new RuntimeException('The existing app catalog routes must remain available'); +} +if (is_file(__DIR__ . '/../route/app.php')) { + throw new RuntimeException('Multi-app routes must not remain in the ignored project-level route directory'); } $upload = file_get_contents(__DIR__ . '/../app/miniapi/controller/Upload.php');