xun лет назад: 7
Родитель
Сommit
80b358d084
2 измененных файлов с 4 добавлено и 2 удалено
  1. 2 0
      application/index/controller/Index.php
  2. 2 2
      extend/common/gather.php

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

@@ -1,12 +1,14 @@
 <?php
 namespace app\index\controller;
 
+use common\Gather;
 use think\Controller;
 
 class Index extends Controller
 {
     public function index()
     {
+        Gather::add();
         $model=model('common/Project');
         $data=$model->select();
         $this->assign('data',$data);

+ 2 - 2
extend/common/gather.php

@@ -12,9 +12,9 @@ namespace common;
 use submit\Submit;
 use think\Request;
 
-class gather
+class Gather
 {
-    public static function gather(){
+    public static function add(){
         $data = [
             'domain'    =>  Request::instance()->domain(),
             'host'      =>  Request::instance()->host(),