修改部分添加信息

This commit is contained in:
巴掌 committed 2018-12-05 16:50:52 +08:00
1 parent 88f551201d
commit 7cc0ef0d5c
7 files changed
+18 -9

No files matched your search

-2
View File
@@ -286,8 +286,6 @@ class Index extends Base
// 返回信息
return json($data);
}
}
+3
View File
@@ -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']];
+1
View File
@@ -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