x
This commit is contained in:
@@ -18,6 +18,7 @@ import (
|
|||||||
var DataHome = utils.GetDataHome()
|
var DataHome = utils.GetDataHome()
|
||||||
|
|
||||||
func Init() {
|
func Init() {
|
||||||
|
initLoc()
|
||||||
sillyGirl = MakeBucket("sillyGirl")
|
sillyGirl = MakeBucket("sillyGirl")
|
||||||
_, err := os.Stat(DataHome)
|
_, err := os.Stat(DataHome)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package core
|
||||||
|
|
||||||
|
import "time"
|
||||||
|
|
||||||
|
var loc *time.Location
|
||||||
|
|
||||||
|
func initLoc() {
|
||||||
|
var err error
|
||||||
|
loc, err = time.LoadLocation("Asia/Shanghai")
|
||||||
|
if err != nil {
|
||||||
|
loc = time.FixedZone("CST", 8*3600)
|
||||||
|
}
|
||||||
|
time.Local = loc
|
||||||
|
}
|
||||||
@@ -18,8 +18,6 @@ import (
|
|||||||
var sillyplus = core.MakeBucket("sillyplus")
|
var sillyplus = core.MakeBucket("sillyplus")
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
loc, _ := time.LoadLocation("Asia/Shanghai")
|
|
||||||
time.Local = loc
|
|
||||||
core.Init()
|
core.Init()
|
||||||
if sillyplus.GetBool("anti_kasi") {
|
if sillyplus.GetBool("anti_kasi") {
|
||||||
go utils.MonitorGoroutine()
|
go utils.MonitorGoroutine()
|
||||||
|
|||||||
Reference in New Issue
Block a user