Commit b57af3a7 by mushishixian

fix

parent b9e5d02a
Showing with 3 additions and 0 deletions
......@@ -3,6 +3,7 @@ package main
import (
"encoding/json"
"flag"
"fmt"
_ "github.com/go-sql-driver/mysql"
"github.com/gohouse/gorose/v2"
"github.com/ichunt2019/logger"
......@@ -11,6 +12,7 @@ import (
"go-queue-server/util"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
"strconv"
"time"
)
......@@ -100,6 +102,7 @@ func main() {
count, _ := specialDb.Reset().Table("lie_activity_statistics").Where("activity_id", activity.Id).
Where("type", 2).Count()
data := make(map[string]interface{})
fmt.Println("活动iD : " + strconv.Itoa(activity.Id) + ",订单数量 : " + strconv.Itoa(int(orderNum)))
data["order_num"] = orderNum
data["new_user_num"] = newUserNum
data["update_time"] = time.Now().Unix()
......
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