错误如图:
修改方法
路径:
app\common\dao\store\product\ProductDao.php
删除:
$where['us_status']
新增:
&& $key != 'us_status'
修改后完整代码:
public function search(?int $merId, array $where)
{
$keyArray = $whereArr = [];
unset($where['type']);
foreach ($where as $key => $item) {
if ($item !== '' && $key != 'soft' && $key != 'us_status') {
$keyArray[] = $key;
$whereArr[$key] = $item;
}
}

