From cb06f7a0e91903708c3edcb280911f9b95a2f918 Mon Sep 17 00:00:00 2001 From: "HESU\\HESU" <1696136552@qq.com> Date: Thu, 17 Jul 2025 15:10:24 +0800 Subject: [PATCH] =?UTF-8?q?crm=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/crm/controller/CustomerController.php | 7 +++++++ config/route.php | 2 ++ 2 files changed, 9 insertions(+) diff --git a/app/crm/controller/CustomerController.php b/app/crm/controller/CustomerController.php index 5fc0750..50e85b9 100644 --- a/app/crm/controller/CustomerController.php +++ b/app/crm/controller/CustomerController.php @@ -16,6 +16,13 @@ use support\Request; class CustomerController extends BaseController { + /** + * 不需要头信息的方法 + */ + protected $noNeedHeader = []; + + protected $noNeedLogin = ['getChannel', 'getCountry']; + /** * 客户分级 * @param Request $request diff --git a/config/route.php b/config/route.php index 413f864..4fd7025 100644 --- a/config/route.php +++ b/config/route.php @@ -101,6 +101,8 @@ Route::group('/crm', function () { Route::any('/customer/restore', [app\crm\controller\CustomerController::class, 'restore']); Route::any('/customer/delete', [app\crm\controller\CustomerController::class, 'delete']); Route::any('/customer/waitFollow', [app\crm\controller\CustomerController::class, 'waitFollow']); + Route::any('/customer/statistics', [app\crm\controller\CustomerController::class, 'statistics']); Route::any('/customer/getChannel', [app\crm\controller\CustomerController::class, 'getChannel']); + Route::any('/customer/getCountry', [app\crm\controller\CustomerController::class, 'getCountry']); });