三勾商城 默认首页 跳转 默认用户管理登录页面 调整方法
找到文件:/app/shop/controller/Controller.php
顶部 添加 use think\facade\Request;
修改 if(!token){ 这里判断域名匹配 直接跳转 }
if (!$token) { $fullurl = Request::url(true); if($fullurl=='https://yssy.haocp.cn/'){ header('Location: https://yssy.haocp.cn/shop/'); exit; }else{ throw new BaseException(['msg' => '缺少必要的参数:token', 'code' => -1]); } }