修改部分添加信息

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

+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']];