更新命名问题

This commit is contained in:
2025-06-25 11:52:01 +08:00
parent 9f374011ae
commit 6b78ee29cf
57 changed files with 3295 additions and 1288 deletions
+16 -16
View File
@@ -8,23 +8,23 @@ use think\Response;
class Auth
{
public function handle(Request $request, Closure $next): Response
{
// 获取当前请求的控制器和方法
$controller = $request->controller();
$action = $request->action();
// public function handle(Request $request, Closure $next): Response
// {
// // 获取当前请求的控制器和方法
// $controller = $request->controller();
// $action = $request->action();
// 如果请求的控制器是 Supplier 且方法是 sendintention,则跳过验证
if ($controller === 'Supplier' && $action === 'sendintention') {
return $next($request);
}
// // 如果请求的控制器是 Supplier 且方法是 sendintention,则跳过验证
// if ($controller === 'Supplier' && $action === 'sendintention') {
// return $next($request);
// }
// 执行登录验证逻辑
if (!session('?user_id')) {
// 未登录,返回错误或重定向到登录页面
return redirect('login/index');
}
// // 执行登录验证逻辑
// if (!session('?user_id')) {
// // 未登录,返回错误或重定向到登录页面
// return redirect('login/index');
// }
return $next($request);
}
// return $next($request);
// }
}
+3 -1
View File
@@ -3,7 +3,9 @@
{block name="breadcrumb"}
<span class="layui-breadcrumb">
<a href="http://www.meteteme.com/" target="_blank">江苏美天科技</a>
<a href="/business/index/nav"><cite>CRM</cite></a>
<a href="/application/nav/index">
<cite>应用</cite>
</a>
<a><cite>客户管理</cite></a>
</span>
{/block}
+3 -3
View File
@@ -3,8 +3,8 @@
{block name="breadcrumb"}
<span class="layui-breadcrumb">
<a href="http://www.meteteme.com/" target="_blank">江苏美天科技</a>
<a href="/business/index/nav">
<cite>CRM</cite>
<a href="/application/nav/index">
<cite>应用</cite>
</a>
<a>
<cite>供应商管理</cite>
@@ -286,7 +286,7 @@
shadeClose: true,
shade: 0.8,
area: ['70%', '90%'], // 宽高
content: '/business/supplier/view/id/' + id,
content: '/business/supplier/view?id=' + id,
});
}
});