getPluginPriorityByName 根据插件名获取优先级
(pluginName string)
| 1453 | |
| 1454 | // getPluginPriorityByName 根据插件名获取优先级 |
| 1455 | func getPluginPriorityByName(pluginName string) int { |
| 1456 | // 从插件管理器动态获取真实的优先级 (O(1)哈希查找) |
| 1457 | if pluginInstance, exists := plugin.GetPluginByName(pluginName); exists { |
| 1458 | return pluginInstance.Priority() |
| 1459 | } |
| 1460 | return 3 // 默认等级 |
| 1461 | } |
| 1462 | |
| 1463 | // getPluginLevelScore 获取插件等级得分 |
| 1464 | func getPluginLevelScore(source string) int { |
no test coverage detected