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()