diff --git a/.example.env b/.example.env index 39a5af55..625de91f 100644 --- a/.example.env +++ b/.example.env @@ -6,10 +6,12 @@ DEFAULT_TIMEZONE = Asia/Shanghai [DATABASE] TYPE = mysql HOSTNAME = 127.0.0.1 -DATABASE = mayi -USERNAME = username -PASSWORD = password +DATABASE = dlsm +USERNAME = mayi +PASSWORD = 123456 HOSTPORT = 3306 +CHARSET = utf8 +PREFIX = cj_ DEBUG = false [LANG] @@ -17,3 +19,6 @@ default_lang = zh-cn [SESSION] EXPIRE = 1200 + +[SHANGMA] +CLASSMAX = 30 diff --git a/app/base/controller/StudentSearchBase.php b/app/base/controller/StudentSearchBase.php index c9eea07b..82a4abc5 100644 --- a/app/base/controller/StudentSearchBase.php +++ b/app/base/controller/StudentSearchBase.php @@ -1,5 +1,5 @@ kaoshi(); + return $subject; } diff --git a/app/kaohao/model/SearchOne.php b/app/kaohao/model/SearchOne.php index 6520c591..100820d3 100644 --- a/app/kaohao/model/SearchOne.php +++ b/app/kaohao/model/SearchOne.php @@ -11,7 +11,7 @@ use \app\kaohao\model\Kaohao as kh; class SearchOne extends BaseModel { // 获取某个学生历次考试成绩 - public function srcOneStudentOldChengji($srcfrom) + public function oldChengji($srcfrom) { // 初始化参数 $src = array( diff --git a/app/kaohao/view/index/read.html b/app/kaohao/view/index/read.html index 106fe837..5288f533 100644 --- a/app/kaohao/view/index/read.html +++ b/app/kaohao/view/index/read.html @@ -71,7 +71,7 @@ - +