From 2e8bc33d9918fe83349eb01067e00ad365c3b8c2 Mon Sep 17 00:00:00 2001 From: xuanchen <122383162@qq.com> Date: Mon, 7 Dec 2020 10:17:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/pingan.php | 5 +++++ config/xuanchen_coupon.php | 4 ++++ packages/coupon/src/Action/Init.php | 3 ++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/config/pingan.php b/config/pingan.php index 7068526..d2bdb60 100644 --- a/config/pingan.php +++ b/config/pingan.php @@ -46,4 +46,9 @@ return [ 7 => '未激活', ], + 'froms' => [ + 'bsshop',//本时商城 + 'bslive',//本时生活 + ], + ]; diff --git a/config/xuanchen_coupon.php b/config/xuanchen_coupon.php index ed94d03..e0de1e5 100644 --- a/config/xuanchen_coupon.php +++ b/config/xuanchen_coupon.php @@ -14,4 +14,8 @@ return [ ], ], + 'froms' => [ + 'bsshop',//本时商城 + 'bslive',//本时生活 + ], ]; diff --git a/packages/coupon/src/Action/Init.php b/packages/coupon/src/Action/Init.php index 02286cb..98f5708 100644 --- a/packages/coupon/src/Action/Init.php +++ b/packages/coupon/src/Action/Init.php @@ -151,7 +151,8 @@ class Init //统一门店 相同金额 3分钟之内看作是一笔订单 public function CheckCount() { - if (!empty($this->from) && in_array($this->from, [''])) { + //排除来源 + if (!empty($this->from) && in_array($this->from, config('pingan.froms'))) { return true; }