init: 从宝塔同步到 Gitea
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
namespace app\onlinechip\controller;
|
||||
use \think\Controller;
|
||||
use \think\Session;
|
||||
use \think\Request;
|
||||
use \think\Db;
|
||||
use think\Lang;
|
||||
|
||||
class Index Extends Controller{
|
||||
public function index(){
|
||||
// 获取语言包
|
||||
$lang = Lang::get();
|
||||
$lang = json_encode($lang);
|
||||
// 渲染参数和模板
|
||||
$this->assign('lang',$lang);
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user