From 3418b1d063a1f78e91235b989589b4f6df5b9070 Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Wed, 16 Sep 2020 20:59:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B5=8B=E8=AF=95=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controller/v3/OrderOnlineController.php | 6 +++--- app/Controller/v3/TestController.php | 21 --------------------- config/routes.php | 1 - 3 files changed, 3 insertions(+), 25 deletions(-) delete mode 100644 app/Controller/v3/TestController.php diff --git a/app/Controller/v3/OrderOnlineController.php b/app/Controller/v3/OrderOnlineController.php index 0f578f0..4c31b06 100644 --- a/app/Controller/v3/OrderOnlineController.php +++ b/app/Controller/v3/OrderOnlineController.php @@ -90,9 +90,9 @@ class OrderOnlineController extends BaseController //获取用户收货地址 $address = UserAddress::query() ->where('user_id',$userId) - ->where('is_default',1) - // ->orderByDesc('is_default') - // ->orderByDesc('updated_at') + //->where('is_default',1) + ->orderByDesc('is_default') + ->orderByDesc('updated_at') ->first(); $res['location'] = [ 'address' => $address, diff --git a/app/Controller/v3/TestController.php b/app/Controller/v3/TestController.php deleted file mode 100644 index e3a2bbb..0000000 --- a/app/Controller/v3/TestController.php +++ /dev/null @@ -1,21 +0,0 @@ -feiePrintService->feiePrint(164697472501960704); - return $this->success($res); - } -} \ No newline at end of file diff --git a/config/routes.php b/config/routes.php index f37e0b7..5a23c7c 100644 --- a/config/routes.php +++ b/config/routes.php @@ -93,7 +93,6 @@ Router::addGroup('/v3/', function () { Router::post('Search/market', 'App\Controller\v3\SearchController@market'); Router::post('market/services', 'App\Controller\v3\LocationController@getMarketsInfo'); Router::post('home/aboutLanzu', 'App\Controller\v3\HomeController@aboutLanzu'); - Router::post('test/index', 'App\Controller\v3\TestController@index'); },['middleware' => [\App\Middleware\Auth\ApiMiddleware::class]]); // 需要登录的路由