Commit 11cbe606 by 冷斌

update

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