diff --git a/dao/msg.go b/dao/msg.go index afb0cf2..a0a7736 100644 --- a/dao/msg.go +++ b/dao/msg.go @@ -61,7 +61,7 @@ func GetAIStreamModelMsgCount() ([]AIStreamMsgModelIDCount, error) { return nil, db2.Error } //获取模型名称 - for i := 0; i < len(aiStreamMsgModelIDCounts); i++ { + for i, _ := range aiStreamMsgModelIDCounts { modelName := FindModelByIDV2(int(aiStreamMsgModelIDCounts[i].ModelID)) aiStreamMsgModelIDCounts[i].ModelName = modelName[0].Description }