123
use think\Db;
use think\Exception;
use think\Request;
use think\Validate;
class Index extends Controller
{
public function __construct(Request $request = null)
{
header("Cache-Control: max-age=3600");
parent::__construct($request);
$lang = $this->request->param('lang', '');
$this->lang = $lang;
$langArray = config('lang');
// $this->assign('langConfig', $langArray[$lang]);
$this->assign('lang', $lang);
}
public function index_bak()
request | {} |