refactor(cool): 修复Logger变量名拼写错误

将全局Logger变量从Loger修正为Logger,统一日志实例命名规范,
确保所有模块中日志记录的一致性。

BREAKING CHANGE: 全局日志实例变量名从Loger改为Logger
```
This commit is contained in:
2025-12-25 12:14:04 +08:00
parent ff199e339f
commit 164e70519f
30 changed files with 85 additions and 85 deletions

View File

@@ -34,14 +34,14 @@ type BaseCommControllerEpsReq struct {
// eps 接口
func (c *BaseCommController) Eps(ctx context.Context, req *BaseCommControllerEpsReq) (res *cool.BaseRes, err error) {
if !cool.Config.Eps {
cool.Loger.Error(ctx, "eps is not open")
cool.Logger.Error(ctx, "eps is not open")
res = cool.Ok(nil)
return
}
baseOpenService := service.NewBaseOpenService()
data, err := baseOpenService.AppEPS(ctx)
if err != nil {
cool.Loger.Error(ctx, "eps error", err)
cool.Logger.Error(ctx, "eps error", err)
return cool.Fail(err.Error()), err
}
res = cool.Ok(data)