From 0f7ff15ebaa12761e572f4b86da1b69741bbc94e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=85=89=E6=98=A5?= Date: Thu, 1 Sep 2022 09:39:11 +0800 Subject: [PATCH] - repair log --- const.go | 2 +- request.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/const.go b/const.go index c1eb255..b896bd2 100644 --- a/const.go +++ b/const.go @@ -3,5 +3,5 @@ package pinduoduo const ( apiUrl = "https://gw-api.pinduoduo.com/api/router" logTable = "pinduoduo" - Version = "1.0.12" + Version = "1.0.13" ) diff --git a/request.go b/request.go index 6ea213d..c689d5c 100644 --- a/request.go +++ b/request.go @@ -28,7 +28,7 @@ func (c *Client) request(ctx context.Context, params map[string]interface{}) (go go c.log.logGormClient.GormMiddlewareCustom(ctx, gostring.ToString(params["type"]), request, Version) } if c.log.mongo { - go c.log.logMongoClient.GormMiddlewareCustom(ctx, gostring.ToString(params["type"]), request, Version) + go c.log.logMongoClient.MongoMiddlewareCustom(ctx, gostring.ToString(params["type"]), request, Version) } return request, err