From e004aa88faea2b08973cdb65a341f48f1039cfa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=9C=E5=AE=9D=E4=B9=A6=E8=AE=B0?= Date: Sun, 13 Jun 2021 17:12:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=A5=E6=9C=9F=E5=90=88?= =?UTF-8?q?=E6=B3=95=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/student/controller/Index.php | 2 -- app/student/model/Student.php | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/student/controller/Index.php b/app/student/controller/Index.php index 66a0ef67..5f9c9023 100755 --- a/app/student/controller/Index.php +++ b/app/student/controller/Index.php @@ -457,8 +457,6 @@ class Index extends AdminBase $stu = new STU; $delStuList = $stu->tongBu($stuinfo, $list['school_id']); - halt('同步完成'); - // 获取学校名称 $sch = new \app\system\model\School; $sch = $sch->where('id', $list['school_id'])->value('jiancheng'); diff --git a/app/student/model/Student.php b/app/student/model/Student.php index 862fb229..5f0de94d 100755 --- a/app/student/model/Student.php +++ b/app/student/model/Student.php @@ -412,10 +412,15 @@ class Student extends BaseModel ,'quanpin' => trim(strtolower(str_replace(' ', '', $quanpin))) ,'shoupin' => trim(strtolower(str_replace(' ', '', $shoupin))) ]; + $result = $validate->scene('create')->check($list[$add_k]); if(!$result){ unset($list[$add_k]); } + + if (date('Y-m-d', strtotime($shengri)) != $shengri) { + unset($list[$add_k]); + } } // 获取去掉重复数据的数组