优化:取消商户信息查询时 只能查询指定类型的商户
This commit is contained in:
parent
7c3cb6158c
commit
8a6564d3f8
|
|
@ -38,7 +38,6 @@ class MerchantDao extends BaseDao
|
|||
public function search(array $where, $is_del = 0)
|
||||
{
|
||||
$merchantType = $where['merchant_type'] ?? 0;
|
||||
$merchantType = in_array((int)$merchantType,[0,1,2,3]) ? $merchantType : 0;// 类型非法,使用默认类型
|
||||
|
||||
$query = Merchant::getDB()
|
||||
->when(isset($where['mer_id']) && $where['mer_id'] !== '', function ($query) use ($where) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue