...
|
...
|
@@ -77,6 +77,10 @@ class SchoolController extends WeChatBaseController{ |
|
|
$school['region'] = $_POST['region'];
|
|
|
$school['school'] = $_POST['school'];
|
|
|
$school['type'] = $_POST['type'];
|
|
|
$data = Db::name('school')->where(['region'=>$_POST['region'],'school'=>$_POST['school']])->find();
|
|
|
if(!empty($data)){
|
|
|
return 5;
|
|
|
}
|
|
|
$school_id = Db::name('school') -> insertGetId($school);
|
|
|
foreach ($class_data as $key => $val){
|
|
|
$grade_class = explode('-',$val);
|
...
|
...
|
|