数据库初始化

This commit is contained in:
lijun 2025-01-14 15:40:48 +08:00
parent ee2e6bfae7
commit 52effbde93
2 changed files with 9 additions and 3 deletions

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@ -82,8 +82,8 @@ func ReadConfig(path string) error {
} }
worker.SetRedis("vp_stream_config", string(jsonData)) worker.SetRedis("vp_stream_config", string(jsonData))
SigningKey = []byte(Config.TOKEN_SECRET) SigningKey = []byte(Config.TOKEN_SECRET)
if Config.TOKEN_SECRET == "" { //if Config.TOKEN_SECRET == "" {
err = fmt.Errorf("token secret is empty: %s", string(jsonData)) // err = fmt.Errorf("token secret is empty: %s", string(jsonData))
} //}
return err return err
} }