/** * 删除培训机构优先类别AJAX方法 * @param string $tipt_id_str 形如1,3,4样式的ID列表 */ public function removeTIPTFunc($tipt_id_str) { $resp = new AjaxResponse(); if (!$this->check_power_new('traininginstitution_removetipt', false)) { $resp->alert('您没有权限执行该功能'); return $resp; } try { TrainingInstitutionModel::removeTrainingInstitutionPriType($tipt_id_str); admin_log('delete', '', "培训机构优先类别tipt_id: {$tipt_id_str}"); $resp->call('location.reload'); } catch (Exception $e) { $resp->alert($e->getMessage()); } return $resp; }