增加限制

This commit is contained in:
2020-12-07 10:17:05 +08:00
parent 5dc96a5cb1
commit 2e8bc33d99
3 changed files with 11 additions and 1 deletions

View File

@@ -46,4 +46,9 @@ return [
7 => '未激活', 7 => '未激活',
], ],
'froms' => [
'bsshop',//本时商城
'bslive',//本时生活
],
]; ];

View File

@@ -14,4 +14,8 @@ return [
], ],
], ],
'froms' => [
'bsshop',//本时商城
'bslive',//本时生活
],
]; ];

View File

@@ -151,7 +151,8 @@ class Init
//统一门店 相同金额 3分钟之内看作是一笔订单 //统一门店 相同金额 3分钟之内看作是一笔订单
public function CheckCount() public function CheckCount()
{ {
if (!empty($this->from) && in_array($this->from, [''])) { //排除来源
if (!empty($this->from) && in_array($this->from, config('pingan.froms'))) {
return true; return true;
} }