|
@@ -2,19 +2,11 @@
|
|
|
|
|
|
namespace app\index\controller;
|
|
|
|
|
|
-use app\common\controller\Frontend;
|
|
|
+use think\Controller;
|
|
|
use think\Db;
|
|
|
-class Index extends Frontend
|
|
|
+class Index extends Controller
|
|
|
{
|
|
|
|
|
|
- protected $noNeedLogin = '*';
|
|
|
- protected $noNeedRight = '*';
|
|
|
- protected $layout = '';
|
|
|
-
|
|
|
- public function index()
|
|
|
- {
|
|
|
- return $this->view->fetch();
|
|
|
- }
|
|
|
|
|
|
//基础文章网页
|
|
|
public function basedata(){
|
|
@@ -22,12 +14,19 @@ class Index extends Frontend
|
|
|
if(!$key){
|
|
|
exit;
|
|
|
}
|
|
|
+ $lang = input('lang','');
|
|
|
+
|
|
|
$content = Db::name('basedata')->where('key',$key)->find();
|
|
|
+
|
|
|
+ if($lang == 'EN'){
|
|
|
+ $content['content'] = $content['content_en'];
|
|
|
+ }
|
|
|
$this->assign('content',$content['content']);
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* app下载页
|
|
|
* 判断是安卓还是ios
|