Commit ab370a07 by 冷斌

add

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