Commit 2c2472aa by 冷斌

update

parent d6fb56e8
...@@ -665,7 +665,13 @@ class Model_User extends PhalApi_Model_NotORM ...@@ -665,7 +665,13 @@ class Model_User extends PhalApi_Model_NotORM
$p['touid'] = $touid; $p['touid'] = $touid;
} }
$list = DI()->notorm->users_label->select("label")->where($p)->fetchOne(); $model = DI()->notorm->users_label->select("label")->where($p);
if (count($p) > 1) {
$list = $model->limit(10)->fetchAll();
} else {
$list = $model->fetchOne();
}
return $list; return $list;
......
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