-
Notifications
You must be signed in to change notification settings - Fork 7
/
main.go
48 lines (43 loc) · 979 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package main
import (
"log"
//"mimi/djq/config"
//"mimi/djq/constant"
//"mimi/djq/initialization"
//"mimi/djq/router"
//"mimi/djq/task"
"time"
"github.com/fecshop/go_fec_api/initialization"
"github.com/fecshop/go_fec_api/router"
)
func main() {
log.Println("------start:" + time.Now().String())
initialization.InitGlobalLog()
log.Println("------start:" + time.Now().String())
log.SetFlags(log.LstdFlags | log.Llongfile)
//initData()
//initTestData()
//beginTask()
router.Begin()
}
/*
func beginTask() {
if "true" == config.Get("task_run") {
go task.CheckPayingOrder()
go task.CheckRefundingOrder()
go task.AgreeNotUsedRefunding()
go task.CountCashCoupon()
go task.CountForPromotionalPartner()
go task.CheckExpiredCashCoupon()
go task.CheckExpiredPresent()
}
}
func initData() {
constant.AdminId = initialization.InitData()
}
func initTestData() {
if config.Get("buildTestData") == "true" {
initialization.InitTestData()
}
}
*/