parent
c3d5ed9774
commit
a30b92ea68
|
|
@ -208,6 +208,7 @@ func (o *OrderNotify) checkApp() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *OrderNotify) checkOrder() {
|
func (o *OrderNotify) checkOrder() {
|
||||||
|
utils.Log(nil, "检查订单状态:%d", o.order.Id)
|
||||||
cond := builder.NewCond()
|
cond := builder.NewCond()
|
||||||
cond = cond.And(builder.Eq{"id": o.OrderId})
|
cond = cond.And(builder.Eq{"id": o.OrderId})
|
||||||
o.order, o.Code = services.OrderFindOne(&ordersmodel.Orders{}, cond)
|
o.order, o.Code = services.OrderFindOne(&ordersmodel.Orders{}, cond)
|
||||||
|
|
|
||||||
3
main.go
3
main.go
|
|
@ -4,6 +4,7 @@ import (
|
||||||
"PaymentCenter/app/console"
|
"PaymentCenter/app/console"
|
||||||
"PaymentCenter/app/http/routes"
|
"PaymentCenter/app/http/routes"
|
||||||
"PaymentCenter/app/jobs"
|
"PaymentCenter/app/jobs"
|
||||||
|
"PaymentCenter/app/utils"
|
||||||
"PaymentCenter/bootstrap"
|
"PaymentCenter/bootstrap"
|
||||||
"PaymentCenter/config"
|
"PaymentCenter/config"
|
||||||
_ "PaymentCenter/docs"
|
_ "PaymentCenter/docs"
|
||||||
|
|
@ -66,7 +67,7 @@ func main() {
|
||||||
fmt.Printf("%s\ncommit %s\nbuilt on %s\n", server.Version, server.BuildCommit, server.BuildDate)
|
fmt.Printf("%s\ncommit %s\nbuilt on %s\n", server.Version, server.BuildCommit, server.BuildDate)
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
utils.Log(nil, "正在启动服务...")
|
||||||
handleCmd(opts)
|
handleCmd(opts)
|
||||||
|
|
||||||
err := startServer(opts)
|
err := startServer(opts)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue