Bläddra i källkod

20250208 优化调整

贾小兵 2 månader sedan
förälder
incheckning
7b96040871
2 ändrade filer med 3 tillägg och 2 borttagningar
  1. 2 1
      application/admin/controller/teacher/Exams.php
  2. 1 1
      application/config.php

+ 2 - 1
application/admin/controller/teacher/Exams.php

@@ -279,7 +279,8 @@ class Exams extends Backend
         }
         [$where, $sort, $order, $offset, $limit] = $this->buildparams();
         $list = $this->model
-            ->where($where)->where('exam_collection_id',$ids)->where($this->whereExtend)->with($this->relationtTable)
+            ->where($where)->where('exam_collection_id',$ids)
+            ->where($this->whereExtend)->with($this->relationtTable)
             ->order($sort, $order)
             ->paginate($limit);
         $result = ['total' => $list->total(), 'rows' => $list->items()];

+ 1 - 1
application/config.php

@@ -61,7 +61,7 @@ return [
     // 默认模块名
     'default_module'         => 'index',
     // 禁止访问模块
-    'deny_module_list'       => ['common', 'admin'],
+    'deny_module_list'       => ['common'],
     // 默认控制器名
     'default_controller'     => 'Index',
     // 默认操作名