From d32c3b7f865bdf208fe75348c1e68567aba4af9c Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Mon, 19 Oct 2020 09:49:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E5=88=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controller/v3/CouponController.php | 3 ++- app/Service/v3/Implementations/CouponRecService.php | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Controller/v3/CouponController.php b/app/Controller/v3/CouponController.php index ab98ed8..a17b7ba 100644 --- a/app/Controller/v3/CouponController.php +++ b/app/Controller/v3/CouponController.php @@ -104,6 +104,7 @@ class CouponController extends BaseController $userId = $this->request->input("user_id", 0); $receiveType = $this->request->input("receive_type", 0); $ids = $this->request->input("ids", ''); - $res['statistics'] = $this->couponRecService->receive($userId,$receiveType,$ids); + $res = $this->couponRecService->receive($userId,$receiveType,$ids); + return $this->success($res); } } diff --git a/app/Service/v3/Implementations/CouponRecService.php b/app/Service/v3/Implementations/CouponRecService.php index 3ea449f..b4a1baf 100644 --- a/app/Service/v3/Implementations/CouponRecService.php +++ b/app/Service/v3/Implementations/CouponRecService.php @@ -460,5 +460,9 @@ class CouponRecService implements CouponRecServiceInterface } } }); + return [ + 'success' => $success, + 'fail' => $fail, + ]; } } \ No newline at end of file