From 03c5f6df18e759e87dae4f86928ca7f1f8dbc846 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Wed, 4 Jan 2023 21:38:43 +0800 Subject: [PATCH] =?UTF-8?q?signIn=20=E8=BF=9B=E8=A1=8C=E9=99=90=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/logic/domain/device/device_service.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/logic/domain/device/device_service.go b/internal/logic/domain/device/device_service.go index 8c7ab19..51d9dae 100644 --- a/internal/logic/domain/device/device_service.go +++ b/internal/logic/domain/device/device_service.go @@ -42,11 +42,13 @@ func (*deviceService) SignIn(ctx context.Context, userId, deviceId int64, token cacheKey := fmt.Sprintf(SignInKey, masterId, utils.Int64ToStr(userId)) if db.RedisUtil.Exists(cacheKey) { utils.FilePutContents("sign_in", utils.SerializeStr(map[string]interface{}{ + "master_id": masterId, "user_id": userId, "device_id": deviceId, "token": token, "conn_addr": connAddr, "client_addr": clientAddr, + "cache_key": cacheKey, })) return errors.New("限频!!!") } else {