2023-08-04 11:13:41 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"enterprise/common/config"
|
|
|
|
"enterprise/common/global"
|
2023-08-09 22:00:55 +08:00
|
|
|
"enterprise/common/weixin"
|
2023-08-04 11:13:41 +08:00
|
|
|
"enterprise/server"
|
|
|
|
"enterprise/worker"
|
|
|
|
)
|
|
|
|
|
2023-09-04 21:58:26 +08:00
|
|
|
func main() {
|
2023-08-04 11:13:41 +08:00
|
|
|
config.LoadServerConfig()
|
|
|
|
global.InitGlobal()
|
|
|
|
|
2023-09-04 21:58:26 +08:00
|
|
|
/*
|
|
|
|
if err := worker.Init(); err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
*/
|
2023-08-04 11:13:41 +08:00
|
|
|
if err := server.Start(); err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
}
|
2023-09-04 21:58:26 +08:00
|
|
|
func main3() {
|
2023-09-04 19:14:02 +08:00
|
|
|
config.LoadServerConfig()
|
|
|
|
global.InitGlobal()
|
|
|
|
//cfg := config.GetConfig()
|
|
|
|
worker.SyncStaffSalary("")
|
|
|
|
|
|
|
|
}
|
2023-08-08 23:54:30 +08:00
|
|
|
|
|
|
|
func main2() {
|
|
|
|
config.LoadServerConfig()
|
2023-08-09 22:00:55 +08:00
|
|
|
//global.InitGlobal()
|
2023-08-08 23:54:30 +08:00
|
|
|
|
2023-08-09 22:00:55 +08:00
|
|
|
pay := weixin.NewQyPay()
|
|
|
|
if err := pay.PayRedMoney(&weixin.RedMoneyReq{
|
|
|
|
TotalAmount: 200,
|
|
|
|
Title: "加班补贴",
|
|
|
|
Userid: "jiangyong",
|
|
|
|
}); err != nil {
|
2023-08-08 23:54:30 +08:00
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
}
|