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 @@
-
-
+
-
-
-
-
+
-
-
@@ -33,21 +27,21 @@
- {
+ "keyToString": {
+ "RunOnceActivity.OpenProjectViewOnStart": "true",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "RunOnceActivity.go.format.on.save.advertiser.fired": "true",
+ "RunOnceActivity.go.formatter.settings.were.checked": "true",
+ "RunOnceActivity.go.migrated.go.modules.settings": "true",
+ "RunOnceActivity.go.modules.go.list.on.any.changes.was.set": "true",
+ "RunOnceActivity.go.watchers.conflict.with.on.save.actions.check.performed": "true",
+ "WebServerToolWindowFactoryState": "false",
+ "go.import.settings.migrated": "true",
+ "go.sdk.automatically.set": "true",
+ "last_opened_file_path": "E:/msbcode/goshop/common"
}
-}]]>
+}
@@ -68,6 +62,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()