Commit ab370a07 by 冷斌

add

parent 66311edb
......@@ -20,24 +20,22 @@ class Model_User extends PhalApi_Model_NotORM
$info['vip'] = getUserVip($uid);
$info['liang'] = getUserLiang($uid);
$configpri = getConfigPri();
if ($configpri['auth_islimit']) {
$auth = DI()->notorm->users_auth->where("uid=?", $uid)->fetchOne();
$anchor_certification = 0;
if (!empty($auth)) {
$anchor_certification = 3;
if ($auth['status'] == 0) {
$anchor_certification = 2;
}
if ($auth['status'] == 1) {
$anchor_certification = 1;
}
$configpri=getConfigPri();
$info['auth_islimit'] = $configpri['auth_islimit'];
$anchor_certification = 0;
$auth=DI()->notorm->users_auth->where("uid=?", $uid)->fetchOne();
if (!empty($auth)) {
$anchor_certification = 3;
if ($auth['status']==0) {
$anchor_certification = 2;
}
if ($auth['status']==1) {
$anchor_certification = 1;
}
} else {
$anchor_certification = 1;
}
$info['anchor_certification'] = $anchor_certification;
list($type, $familyId) = $this->getFamilyRole($uid);
$info['family_type'] = $type;
}
......
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