Merge branch 'master' of https://gitee.com/dlbz/shangma into auth

This commit is contained in:
win10 committed 2020-09-11 07:59:46 +08:00
commit 87fa02385b
1 file changed
+3 -2
+3 -2
View File
@@ -251,8 +251,9 @@ class Banji extends BaseModel
$njlist = $this->gradeName('str', time());
$bjlist = $this->className();
$nj = substr($str, 0, 9);
$bj = substr($str, 9, strlen($str) - 9);
$find = strpos($str,"级") + 3;
$nj = substr($str, 0, $find);
$bj = substr($str, $find, strlen($str) - $find);
$nj = array_search($nj, $njlist);
$bj = array_search($bj, $bjlist);