修改考试设置表格
This commit is contained in:
1 parent
acd4180181
commit
a30ed5b256
146 files changed
+3216
-2782
No files matched your search
@@ -28,7 +28,7 @@ class Category extends Base
|
||||
{
|
||||
$src = [
|
||||
'field'=>'id',
|
||||
'type'=>'asc',
|
||||
'order'=>'asc',
|
||||
'pid'=>'',
|
||||
'searchval'=>''
|
||||
];
|
||||
@@ -42,7 +42,7 @@ class Category extends Base
|
||||
|
||||
// 查询数据
|
||||
$data = $this
|
||||
->order([$src['field'] =>$src['type']])
|
||||
->order([$src['field'] =>$src['order']])
|
||||
->when(strlen($pid)>0,function($query) use($pid){
|
||||
$query->whereOr('pid','in',$pid);
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user