Index.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace app\index\controller;
  3. use app\common\controller\Frontend;
  4. use app\job\InsertDataJob;
  5. use think\Queue;
  6. use think\Db;
  7. class Index extends Frontend
  8. {
  9. protected $noNeedLogin = '*';
  10. protected $noNeedRight = '*';
  11. protected $layout = '';
  12. public function index(){
  13. // // 查询模版表
  14. // $products = Db::name('product_template')->select();
  15. // $http_url = Db::name('http_url')->field('baseUrl,port')->find();
  16. // if ($products && $http_url) {
  17. // $base_url = !empty($http_url['baseUrl']) && !empty($http_url['port'])
  18. // ? 'http://' . $http_url['baseUrl'] . ':' . $http_url['port']: '';
  19. // if ($base_url) {
  20. // foreach ($products as &$val) {
  21. // $val['template_image_url'] = $base_url . $val['template_image_url'];
  22. // }
  23. // }
  24. // }
  25. // $this->assign('products', $products);
  26. // $this->assign('http_url', $http_url);
  27. return $this->view->fetch();
  28. }
  29. }