From c7c86a4a96ca756f4cc2aec12a3d70c2e71239e8 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Mon, 7 Aug 2023 15:00:55 +0800 Subject: [PATCH] feat: s3 AccessURL --- internal/rpc/third/s3.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/rpc/third/s3.go b/internal/rpc/third/s3.go index 0a971982d..05255ceca 100644 --- a/internal/rpc/third/s3.go +++ b/internal/rpc/third/s3.go @@ -162,6 +162,7 @@ func (t *thirdServer) AccessURL(ctx context.Context, req *third.AccessURLReq) (* opt.Image.Format = req.Query["format"] opt.Image.Width, _ = strconv.Atoi(req.Query["width"]) opt.Image.Height, _ = strconv.Atoi(req.Query["height"]) + log.ZDebug(ctx, "AccessURL image", "name", req.Name, "option", opt.Image) case "video": opt.Video = &s3.Video{} opt.Video.Format = req.Query["format"] @@ -169,6 +170,7 @@ func (t *thirdServer) AccessURL(ctx context.Context, req *third.AccessURLReq) (* opt.Video.Height, _ = strconv.Atoi(req.Query["height"]) millisecond, _ := strconv.Atoi(req.Query["time"]) opt.Video.Time = time.Millisecond * time.Duration(millisecond) + log.ZDebug(ctx, "AccessURL video", "name", req.Name, "option", opt.Video) default: return nil, errs.ErrArgs.Wrap("invalid query type") }