mirror of
https://github.com/woodchen-ink/aimodels-prices.git
synced 2025-07-19 06:01:59 +08:00
- 在 UpdateOtherPrices 函数中新增已处理模型的跟踪机制,避免重复处理同一模型 - 增强模型数据处理逻辑,确保在创建新价格记录前检查待审核记录 - 更新 main.go,添加初始化任务的调用,提升系统启动时的功能完整性
17 lines
312 B
Go
17 lines
312 B
Go
package init
|
|
|
|
import (
|
|
"log"
|
|
)
|
|
|
|
// RunInitTasks 运行所有初始化任务
|
|
func RunInitTasks() {
|
|
// 检查并处理重复的模型名称
|
|
if err := CheckDuplicateModelNames(); err != nil {
|
|
log.Printf("检查重复模型名称时发生错误: %v", err)
|
|
}
|
|
|
|
// 在此处添加其他初始化任务
|
|
// ...
|
|
}
|