From b1d9b63d0cbe9266fbc0e71f9bc437bd827a895e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=97=AF=7E?= Date: Thu, 27 May 2021 15:01:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=8F=AD=E7=BA=A7ID=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/teach/model/Banji.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/teach/model/Banji.php b/app/teach/model/Banji.php index b97fa0ca..099f6898 100755 --- a/app/teach/model/Banji.php +++ b/app/teach/model/Banji.php @@ -239,6 +239,7 @@ class Banji extends BaseModel */ public function srcBanJiID($str, $school_id) { + $str = trim($str); // 获取年级、班级列表 $njlist = $this->gradeName(time(),'str'); $bjlist = $this->className(); @@ -255,6 +256,7 @@ class Banji extends BaseModel break; } } + // 去掉年级,获取班级 $str = str_replace($njlist[$nj], '', $str); // 获取班级