Commit 11cbe606 by 冷斌

update

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