From dabe8fbe7a56785f73b6cd65f470bde3649ae281 Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Sun, 6 Sep 2020 10:02:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E8=97=8F=E5=BA=97=E9=93=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controller/v3/CollectStoreController.php | 5 +++-- app/Controller/v3/UserAddressController.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Controller/v3/CollectStoreController.php b/app/Controller/v3/CollectStoreController.php index 8f13dca..036266b 100644 --- a/app/Controller/v3/CollectStoreController.php +++ b/app/Controller/v3/CollectStoreController.php @@ -22,10 +22,11 @@ class CollectStoreController extends BaseController $exists = $this->collectStoreService->check($params['user_id'],$params['store_id']); //如果已收藏则删除 if($exists){ - $res = $this->collectStoreService->undo($params['user_id'],$params['store_id']); + $this->collectStoreService->undo($params['user_id'],$params['store_id']); }else{ - $res = $this->collectStoreService->do($params['user_id'],$params['store_id']); + $this->collectStoreService->do($params['user_id'],$params['store_id']); } + $res = $this->collectStoreService->check($params['user_id'],$params['store_id']); return $this->success($res); } diff --git a/app/Controller/v3/UserAddressController.php b/app/Controller/v3/UserAddressController.php index 7d2f2ca..961b051 100644 --- a/app/Controller/v3/UserAddressController.php +++ b/app/Controller/v3/UserAddressController.php @@ -32,7 +32,7 @@ class UserAddressController extends BaseController public function get() { - $userAddressId = $this->request->input('$user_address_id'); + $userAddressId = $this->request->input('user_address_id'); $res = $this->userAddressService->get($userAddressId); return $this->success($res); }