Commit e11cbd31 authored by rlgy's avatar rlgy

coin按name查询数据

parent f34f5d06
...@@ -67,8 +67,12 @@ class CoinController extends BaseController ...@@ -67,8 +67,12 @@ class CoinController extends BaseController
//名称模糊查询 //名称模糊查询
if (isset($post['name'])) { if (isset($post['name'])) {
if (is_array($post['name'])) {
$condition[] = ['in', 'name', $post['name']];
} else {
$condition[] = ['like', 'name', $post['name']]; $condition[] = ['like', 'name', $post['name']];
} }
}
//昵称模糊查询 //昵称模糊查询
if (isset($post['nickname'])) { if (isset($post['nickname'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment