feat: 支持清空/导入图片

This commit is contained in:
余泓铮
2025-08-12 16:45:53 +08:00
parent 07bfabd5b6
commit 9bf31f643d
5 changed files with 297 additions and 2 deletions

View File

@@ -265,8 +265,10 @@ func (s *DriverSession) Request(method string, urlStr string, rawBody []byte, op
logger = log.Debug().Bool("success", true)
}
logger = logger.Str("logid", logid).Str("request_method", method).Str("request_url", rawURL).
Str("request_body", string(rawBody))
logger = logger.Str("logid", logid).Str("request_method", method).Str("request_url", rawURL)
if len(rawBody) < 1024 {
logger = logger.Str("request_body", string(rawBody))
}
if !driverResult.RequestTime.IsZero() {
logger = logger.Int64("request_time", driverResult.RequestTime.UnixMilli())
}