From 09a8c0de75b3b461dc8814920429280bee628f8c Mon Sep 17 00:00:00 2001 From: shenzhuan Date: Thu, 24 Nov 2022 17:31:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/.idea/workspace.xml | 42 ++++++++++++++++++-------------------- common/config.go | 5 +++++ 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/common/.idea/workspace.xml b/common/.idea/workspace.xml index e6f680b..64f9a11 100644 --- a/common/.idea/workspace.xml +++ b/common/.idea/workspace.xml @@ -4,16 +4,10 @@ + + + true diff --git a/common/config.go b/common/config.go index e4246e7..73fbe65 100644 --- a/common/config.go +++ b/common/config.go @@ -97,6 +97,11 @@ func SetUserToken(red *redis.Client, key string, val []byte, timeTTL time.Durati red.Set(context.Background(), key, val, timeTTL) } +// 订单Token +func SetOrderToken(red *redis.Client, key string, val string, timeTTL time.Duration) { + red.Set(context.Background(), key, val, timeTTL) +} + // 获取用户登录信息 func GetUserToken(red *redis.Client, key string) string { res, err := red.Get(context.Background(), key).Result()