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; }