优化:取消商户信息查询时 只能查询指定类型的商户

This commit is contained in:
wuhui_zzw 2024-04-11 17:55:09 +08:00
parent 7c3cb6158c
commit 8a6564d3f8
1 changed files with 0 additions and 1 deletions

View File

@ -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) {