ZxcZxc123 2 năm trước cách đây
mục cha
commit
5d7b65c424
2 tập tin đã thay đổi với 2 bổ sung6 xóa
  1. 2 2
      app/model/api/EducationModel.php
  2. 0 4
      app/system/controller/Index.php

+ 2 - 2
app/model/api/EducationModel.php

@@ -10,10 +10,10 @@ use think\Model;
 class EducationModel extends Model
     {
     // 设置当前模型对应的数据表名称
-    protected $name = 'table_education_cate';
+//    protected $name = 'table_education_cate';
 
     // 设置当前模型的数据库连接
-    protected $connection = 'infant_service';
+//    protected $connection = 'infant_service';
 
     /**
      * 当前所在模块的CSS样式类

+ 0 - 4
app/system/controller/Index.php

@@ -57,11 +57,7 @@ class Index extends AuthController
     public function getCateList()
     {
         $educationModel = new EducationModel();
-        var_dump('12123213');
-        var_dump($educationModel);
         $cateList = $educationModel->getCate();
-        var_dump('789798798');
-        var_dump($cateList);
         return json($cateList);
     }
 }