/** * 删除课程授课人数类别AJAX方法 * @param string $csnt_id_str 形如1,2,3样式的ID列表字符串 */ public function removeCSNTFunc($csnt_id_str) { $resp = new AjaxResponse(); if (!$this->check_power_new('course_removecsnt', false)) { $resp->alert('您没有权限执行该功能'); return $resp; } try { CourseModel::removeCourseStuNumType($csnt_id_str); admin_log('delete', '', "授课人数类别 csnt_id: {$csnt_id_str}"); $resp->call('location.reload'); } catch (Exception $e) { $resp->alert($e->getMessage()); } return $resp; }