fix 请求日志空指针问题

This commit is contained in:
孟帅 2024-04-23 12:17:56 +08:00
parent e144b12580
commit 6d0c22f98c

View File

@ -111,7 +111,11 @@ func (s *sSysLog) AutoLog(ctx context.Context) error {
}()
config, err := service.SysConfig().GetLoadLog(ctx)
if err != nil || !config.Switch {
if err != nil {
return
}
if config == nil || !config.Switch {
return
}