|
|
|
@ -252,7 +252,7 @@ class TeacherController extends BaseController
|
|
|
|
'introduce' => $item['introduce'] ?? '',
|
|
|
|
'introduce' => $item['introduce'] ?? '',
|
|
|
|
'mobile' => $item['mobile'] ?? '',
|
|
|
|
'mobile' => $item['mobile'] ?? '',
|
|
|
|
];
|
|
|
|
];
|
|
|
|
$this->model->firstOrCreate($where, $data);
|
|
|
|
$this->model->updateOrCreate($where, $data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
DB::commit();
|
|
|
|
DB::commit();
|
|
|
|
return $this->success(['total' => count($records), 'filter_total' => count($records)]);
|
|
|
|
return $this->success(['total' => count($records), 'filter_total' => count($records)]);
|
|
|
|
|