From 82790833917e3dbcbde9755d268810eb8ba96e12 Mon Sep 17 00:00:00 2001 From: xuanchen <122383162@qq.com> Date: Mon, 7 Dec 2020 09:53:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9UserController?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Api/Controllers/UserController.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/Api/Controllers/UserController.php b/app/Api/Controllers/UserController.php index 1afaa85..6b0c85f 100644 --- a/app/Api/Controllers/UserController.php +++ b/app/Api/Controllers/UserController.php @@ -184,11 +184,20 @@ class UserController extends Controller $total = $res['total'] ?? ''; //订单总额; $outletId = $res['outletId'] ?? ''; //网点id; $orderid = $res['orderid'] ?? ''; //订单id; + $from = $res['from'] ?? ''; //来源; $redemptionCode = trim($redemptionCode); $outletId = trim($outletId); - $coupon = Coupon::Redemption($this->user, $redemptionCode, $total, $outletId, $orderid); + $coupon = Coupon::Redemption( + $this->user, + $redemptionCode, + $total, + $outletId, + $orderid, + $from + ); + if (is_string($coupon)) { return $this->error($coupon, $log); }