mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-07 02:12:25 +08:00
用户未登录不展示商品价格应用优化
This commit is contained in:
@ -48,16 +48,22 @@ class Hook extends Controller
|
||||
*/
|
||||
private function PriceHandle($params)
|
||||
{
|
||||
// 后端访问不处理
|
||||
if(isset($params['params']['is_admin_access']) && $params['params']['is_admin_access'] == 1)
|
||||
{
|
||||
return DataReturn('无需处理', 0);
|
||||
}
|
||||
|
||||
// 用户是否已登录
|
||||
if(session('user') != null)
|
||||
{
|
||||
return DataReturn('无需处理', 0);
|
||||
}
|
||||
|
||||
// 获取应用数据
|
||||
$ret = PluginsService::PluginsData('usernotloginhidegoodsprice');
|
||||
if($ret['code'] == 0)
|
||||
{
|
||||
// 用户是否已登录
|
||||
if(session('user') != null)
|
||||
{
|
||||
return DataReturn('无需处理', 0);
|
||||
}
|
||||
|
||||
// 限制终端
|
||||
if(!empty($ret['data']['limit_terminal']))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user