修改部分添加信息
This commit is contained in:
1 parent
88f551201d
commit
7cc0ef0d5c
7 files changed
+18
-9
No files matched your search
@@ -286,8 +286,6 @@ class Index extends Base
|
||||
|
||||
// 返回信息
|
||||
return json($data);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -13,6 +13,8 @@ use app\teach\model\Subject;
|
||||
use app\system\model\Fields;
|
||||
// 引用phpspreadsheet类
|
||||
use app\renshi\controller\Myexcel;
|
||||
// 引用考试类
|
||||
use app\kaoshi\model\Kaoshi;
|
||||
|
||||
class Index extends Base
|
||||
{
|
||||
@@ -27,6 +29,7 @@ class Index extends Base
|
||||
{
|
||||
// 获取表单数据
|
||||
$list = request()->only(['id','ziduan','defen'],'post');
|
||||
|
||||
// 声明学科数组
|
||||
$subject = array('1'=>'yuwen','2'=>'shuxue','3'=>'waiyu');
|
||||
$zd = $subject[$list['ziduan']];
|
||||
|
||||
@@ -188,6 +188,7 @@ class Chengji extends Base
|
||||
->when(!empty($schoolid),function($query) use($schoolid){
|
||||
$query->where('school',$schoolid);
|
||||
})
|
||||
->where('status',1)
|
||||
->field('id,kaoshi,banji,yuwen,shuxue,waiyu')
|
||||
// ->cache('key',180)
|
||||
->select();
|
||||
|
||||
Loaded 3 of 7 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user