提交 dbab7d32 编写于 作者: D devil_gong

游客登录新增默认游客开关

上级 b0058d73
......@@ -89,7 +89,7 @@ class Hook extends Controller
{
// 是否开启默认游客
$ret = PluginsService::PluginsData('touristbuy');
if($ret['code'] == 0 && isset($ret['data']['is_default_tourist']) && $ret['data']['is_default_tourist'] == 1)
if($ret['code'] == 0 && isset($ret['data']['is_default_tourist']) && $ret['data']['is_default_tourist'] == 1 && strtolower(request()->module()) == 'index')
{
return Service::TouristReg();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册