Authored by 周少峰

add studentEntry switch

... ... @@ -486,4 +486,10 @@ class UserModel
return $number;
}
/**
* 学生认证入口开关,zookeeper中配置
*/
public static function getStudentEntryStatus() {
return USE_CACHE && Cache::getBy('zookeeper:/pc/user/removeStudentIdentification') === 'true' ? true : false;
}
}
... ...
... ... @@ -65,7 +65,8 @@ class IndexController extends WebAction
'userThumb' => UserModel::getUserHeadImg($uid),
'homeNav' => $leftNav,
'cancelReason' => $cancelReason,
'certifiedName' => $useInfo['is_student'] ? '学生身份已验证' : '身份验证',
// 学生入口关闭,不展示学生身份认证信息
'certifiedName' => UserModel::getStudentEntryStatus() ? false : $useInfo['is_student'] ? '学生身份已验证' : '身份验证',
'certifiedUrl' => Helpers::url('/product/students/'),
'content' => array(
array(
... ...