| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace app\index\controller;
- use app\common\controller\Frontend;
- use app\job\InsertDataJob;
- use think\Queue;
- use think\Db;
- class Index extends Frontend
- {
- protected $noNeedLogin = '*';
- protected $noNeedRight = '*';
- protected $layout = '';
- public function index(){
- $this->redirect("/index/user/login.html"); //关键代码->重定向
- // 查询模版表
- // $products = Db::name('product_template')->select();
- // $http_url = Db::name('http_url')->field('baseUrl,port')->find();
- // if ($products && $http_url) {
- // $base_url = !empty($http_url['baseUrl']) && !empty($http_url['port'])
- // ? 'http://' . $http_url['baseUrl'] . ':' . $http_url['port']: '';
- // if ($base_url) {
- // foreach ($products as &$val) {
- // $val['template_image_url'] = $base_url . $val['template_image_url'];
- // }
- // }
- // }
- // $this->assign('products', $products);
- // $this->assign('http_url', $http_url);
- return $this->view->fetch();
- }
- }
|