提交
This commit is contained in:
24
app/home/controller/Index.php
Normal file
24
app/home/controller/Index.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace app\home\controller;
|
||||
|
||||
use think\facade\View;
|
||||
|
||||
class Index extends Base
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return View::fetch();
|
||||
}
|
||||
public function langset()
|
||||
{
|
||||
|
||||
$lang = input('lang') ? input('lang') : 'zh-cn';
|
||||
parent::langs($lang);
|
||||
return json([
|
||||
'code' => 1,
|
||||
'msg' => lang('controller.success'),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user