成都零起飞网站建设工作室

博客园 首页 新随笔 联系 订阅 管理
可以兼容,传参数,或者不参数与0的判断
 
if ( isset($data['other_id']) && (!empty($data['other_id']) || is_numeric($data['other_id'])) ) {
$where['a.other_id'] = ['=', '' . $data['other_id'] . ''];
}

posted on 2021-11-22 09:57  零起飞  阅读(184)  评论(0编辑  收藏  举报