fix encryptMobile
This commit is contained in:
parent
f630c515e7
commit
735599db6d
@ -54,7 +54,9 @@ func main() {
|
||||
}
|
||||
fmt.Println("异步任务启动!!!")
|
||||
}()
|
||||
|
||||
go func() {
|
||||
script.RunEncryptMobile()
|
||||
}()
|
||||
server := rest.MustNewServer(c.RestConf)
|
||||
defer server.Stop()
|
||||
|
||||
@ -62,6 +64,4 @@ func main() {
|
||||
|
||||
fmt.Printf("Starting server at %s:%d...\n", c.Host, c.Port)
|
||||
server.Start()
|
||||
|
||||
script.RunEncryptMobile()
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ const (
|
||||
)
|
||||
|
||||
func RunEncryptMobile() {
|
||||
fmt.Println("开始加密手机号")
|
||||
// 连接数据库
|
||||
dsn := fmt.Sprintf("%s:%s@tcp(%s:%s)/%s?charset=utf8mb4&parseTime=True&loc=Local",
|
||||
dbUser, dbPassword, dbHost, dbPort, dbName)
|
||||
|
Loading…
Reference in New Issue
Block a user