Commit db29a0b8 by mushishixian

活动统计修改时间测试

parent e39a25cd
Showing with 6 additions and 5 deletions
...@@ -4,16 +4,17 @@ import ( ...@@ -4,16 +4,17 @@ import (
"encoding/json" "encoding/json"
"flag" "flag"
"fmt" "fmt"
"go-queue-server/special/activity_statistics/model"
"go-queue-server/util"
"strconv"
"time"
_ "github.com/go-sql-driver/mysql" _ "github.com/go-sql-driver/mysql"
"github.com/gohouse/gorose/v2" "github.com/gohouse/gorose/v2"
"github.com/ichunt2019/logger" "github.com/ichunt2019/logger"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
"go-queue-server/special/activity_statistics/model"
"go-queue-server/util"
"gopkg.in/mgo.v2" "gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson" "gopkg.in/mgo.v2/bson"
"strconv"
"time"
) )
var ConfigDir string var ConfigDir string
...@@ -102,7 +103,7 @@ func main() { ...@@ -102,7 +103,7 @@ func main() {
if updateTime == nil { if updateTime == nil {
updateTime = 1 updateTime = 1
} }
updateTime = 1
//先去取出所有的正在进行的活动列表 //先去取出所有的正在进行的活动列表
var giftActivityList []model.GiftActivity var giftActivityList []model.GiftActivity
err = specialDb.Reset().Table(&giftActivityList).Fields("id,start_time,end_time"). err = specialDb.Reset().Table(&giftActivityList).Fields("id,start_time,end_time").
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment