| 123456789101112131415161718192021222324252627282930313233343536 |
- <?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(){
- // // 查询模版表
- // $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();
- }
- }
|