Browse Source

remove vip check in dir switch page

master
filesite 6 months ago
parent
commit
0f1a39c178
  1. 8
      themes/tajian/controller/MyController.php
  2. 4
      themes/tajian/views/my/switchdir.php

8
themes/tajian/controller/MyController.php

@ -139,15 +139,9 @@ Class MyController extends SiteController { @@ -139,15 +139,9 @@ Class MyController extends SiteController {
}
}
//VIP身份判断
$isVipUser = true;
if (empty($loginedUser['cellphone']) || !in_array($loginedUser['cellphone'], FSC::$app['config']['tajian_vip_user'])) {
$isVipUser = false;
}
$defaultTitle = "切换账号";
$viewName = 'switchdir';
return $this->actionIndex($viewName, $defaultTitle, compact('myDirs', 'myNicks', 'isMine', 'isVipUser'));
return $this->actionIndex($viewName, $defaultTitle, compact('myDirs', 'myNicks', 'isMine'));
}
//添加收藏夹

4
themes/tajian/views/my/switchdir.php

@ -15,10 +15,6 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use @@ -15,10 +15,6 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use
</div>
<div class="g_form_style">
<?php if (empty($viewData['isVipUser'])) { ?>
<div class="alert warning">此功能限VIP使用,限时免费开通请联系客服哦</div>
<?php } ?>
<div>
点击昵称切换:
</div>

Loading…
Cancel
Save