/** * 删除授课教师来源AJAX方法 * @param string $ctf_id_str 形如1,3,4的ID列表 */ public function removeCTFFunc($ctf_id_str) { $resp = new AjaxResponse(); if (!$this->check_power_new('course_removectf', false)) { $resp->alert('您没有权限执行该功能'); return $resp; } try { CourseModel::removeCourseTeachfrom($ctf_id_str); admin_log('delete', '', "授课教师来源 ctf_id: {$ctf_id_str}"); $resp->call('location.reload'); } catch (Exception $e) { $resp->alert($e->getMessage()); } return $resp; }