TaoLer/app/middleware/AddonsLang.php
2021-11-02 15:40:58 +08:00

19 lines
370 B
PHP

<?php
namespace app\middleware;
use think\facade\Request;
use think\facade\Lang;
class AddonsLang
{
public function handle($request, \Closure $next)
{
Lang::load([
//$this->app->getRootPath() . '/vendor/zzstudio/think-addons/src/lang/zh-cn.php',
app()->getRootPath().'addons/sign/lang/zh-cn.php',
]);
return $next($request);
}
}