$map['nickname|phone'] = array('like', '%' . $_POST['keyword'] . '%');
(根据nickname或者phone 模糊搜索)
$model = D('User');$dataList = $model->getList($map);
本文共 199 字,大约阅读时间需要 1 分钟。
$map['nickname|phone'] = array('like', '%' . $_POST['keyword'] . '%');
(根据nickname或者phone 模糊搜索)
$model = D('User');$dataList = $model->getList($map);
转载于:https://my.oschina.net/u/3840669/blog/1842704