🔖 chore: migration logger package

This commit is contained in:
MartialBE
2024-05-29 01:04:23 +08:00
parent 79524108a3
commit ce12558ad6
44 changed files with 207 additions and 174 deletions

View File

@@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"
"net/http"
"one-api/common"
"one-api/common/logger"
"one-api/common/requester"
"one-api/model"
"one-api/providers/base"
@@ -95,7 +95,7 @@ func (p *ZhipuProvider) getZhipuToken() string {
split := strings.Split(apikey, ".")
if len(split) != 2 {
common.SysError("invalid zhipu key: " + apikey)
logger.SysError("invalid zhipu key: " + apikey)
return ""
}