/** * 删除课程授课模式AJAX方法 * @param string $cm_id_str 形如1,2,3样式的ID列表 * */ public function removeCMFunc($cm_id_str) { $resp = new AjaxResponse(); if (!$this->check_power_new('course_removecm', false)) { $resp->alert('您没有权限执行该功能'); return $resp; } try { CourseModel::removeCourseMode($cm_id_str); admin_log('delete', '', "授课模式 cm_id: {$cm_id_str}"); $resp->call('location.reload'); } catch (Exception $e) { $resp->alert($e->getMessage()); } return $resp; }