master
shenzhuan 2 years ago
parent f14be699f1
commit 09a8c0de75

@ -4,16 +4,10 @@
<option name="autoReloadType" value="ALL" /> <option name="autoReloadType" value="ALL" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="b0d18d28-83da-4859-af69-c17746a80875" name="Changes" comment=""> <list default="true" id="b0d18d28-83da-4859-af69-c17746a80875" name="Changes" comment="更新包">
<change afterPath="$PROJECT_DIR$/jaeger.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/go.mod" beforeDir="false" afterPath="$PROJECT_DIR$/go.mod" afterDir="false" /> <change beforePath="$PROJECT_DIR$/config.go" beforeDir="false" afterPath="$PROJECT_DIR$/config.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/utils.go" beforeDir="false" afterPath="$PROJECT_DIR$/utils.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../payment-service/go.mod" beforeDir="false" afterPath="$PROJECT_DIR$/../payment-service/go.mod" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../payment-service/go.sum" beforeDir="false" afterPath="$PROJECT_DIR$/../payment-service/go.sum" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../payment-service/main.go" beforeDir="false" afterPath="$PROJECT_DIR$/../payment-service/main.go" afterDir="false" /> <change beforePath="$PROJECT_DIR$/../payment-service/main.go" beforeDir="false" afterPath="$PROJECT_DIR$/../payment-service/main.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../payment-service/proto/trade.pb.go" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../payment-service/proto/trade.pb.micro.go" beforeDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -33,21 +27,21 @@
<option name="hideEmptyMiddlePackages" value="true" /> <option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" /> <option name="showLibraryContents" value="true" />
</component> </component>
<component name="PropertiesComponent"><![CDATA[{ <component name="PropertiesComponent">{
"keyToString": { &quot;keyToString&quot;: {
"RunOnceActivity.OpenProjectViewOnStart": "true", &quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
"RunOnceActivity.ShowReadmeOnStart": "true", &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
"RunOnceActivity.go.format.on.save.advertiser.fired": "true", &quot;RunOnceActivity.go.format.on.save.advertiser.fired&quot;: &quot;true&quot;,
"RunOnceActivity.go.formatter.settings.were.checked": "true", &quot;RunOnceActivity.go.formatter.settings.were.checked&quot;: &quot;true&quot;,
"RunOnceActivity.go.migrated.go.modules.settings": "true", &quot;RunOnceActivity.go.migrated.go.modules.settings&quot;: &quot;true&quot;,
"RunOnceActivity.go.modules.go.list.on.any.changes.was.set": "true", &quot;RunOnceActivity.go.modules.go.list.on.any.changes.was.set&quot;: &quot;true&quot;,
"RunOnceActivity.go.watchers.conflict.with.on.save.actions.check.performed": "true", &quot;RunOnceActivity.go.watchers.conflict.with.on.save.actions.check.performed&quot;: &quot;true&quot;,
"WebServerToolWindowFactoryState": "false", &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
"go.import.settings.migrated": "true", &quot;go.import.settings.migrated&quot;: &quot;true&quot;,
"go.sdk.automatically.set": "true", &quot;go.sdk.automatically.set&quot;: &quot;true&quot;,
"last_opened_file_path": "E:/msbcode/goshop/common" &quot;last_opened_file_path&quot;: &quot;E:/msbcode/goshop/common&quot;
} }
}]]></component> }</component>
<component name="RecentsManager"> <component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS"> <key name="CopyFile.RECENT_KEYS">
<recent name="E:\msbcode\goshop\common" /> <recent name="E:\msbcode\goshop\common" />
@ -68,6 +62,10 @@
</map> </map>
</option> </option>
</component> </component>
<component name="VcsManagerConfiguration">
<MESSAGE value="更新包" />
<option name="LAST_COMMIT_MESSAGE" value="更新包" />
</component>
<component name="VgoProject"> <component name="VgoProject">
<settings-migrated>true</settings-migrated> <settings-migrated>true</settings-migrated>
</component> </component>

@ -97,6 +97,11 @@ func SetUserToken(red *redis.Client, key string, val []byte, timeTTL time.Durati
red.Set(context.Background(), key, val, timeTTL) 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 { func GetUserToken(red *redis.Client, key string) string {
res, err := red.Get(context.Background(), key).Result() res, err := red.Get(context.Background(), key).Result()

Loading…
Cancel
Save