ZxcZxc123 3 年之前
父节点
当前提交
5d7b65c424
共有 2 个文件被更改,包括 2 次插入6 次删除
  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
 class EducationModel extends Model
     {
     {
     // 设置当前模型对应的数据表名称
     // 设置当前模型对应的数据表名称
-    protected $name = 'table_education_cate';
+//    protected $name = 'table_education_cate';
 
 
     // 设置当前模型的数据库连接
     // 设置当前模型的数据库连接
-    protected $connection = 'infant_service';
+//    protected $connection = 'infant_service';
 
 
     /**
     /**
      * 当前所在模块的CSS样式类
      * 当前所在模块的CSS样式类

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

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