/** * 系统计算 试题 难易度 * @see admin/relate_class_model.php system_cal_question_difficulty() */ public function cal_question_difficulty() { //$time_start = microtime(true); //$CI = self::$CI; //$CI->load->model('admin/relate_class_model'); RelateClassModel::system_cal_question_difficulty(); // echo 'costs' . (microtime(true) - $time_start) . ' s'; }
/** * 一键恢复 试题初始难易度 * 字段: * rd_relate_class->difficulty */ public function recover_default_difficulty() { if (!$this->check_power('update_system_difficulty')) { return; } $res = RelateClassModel::recover_difficulty(); if (!$res) { output_json(CODE_ERROR, '更新失败'); } output_json(CODE_SUCCESS, '更新成功'); }