Ver Fonte

first commit

liuhairui há 4 semanas atrás
pai
commit
76cd0e0f75
1 ficheiros alterados com 37 adições e 0 exclusões
  1. 37 0
      application/index/controller/Index.php

+ 37 - 0
application/index/controller/Index.php

@@ -0,0 +1,37 @@
+<?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();
+    }
+
+}