Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang-queue-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
db29a0b8
authored
Feb 07, 2023
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
活动统计修改时间测试
parent
e39a25cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
special/activity_statistics/main.go
special/activity_statistics/main.go
View file @
db29a0b8
...
@@ -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"
)
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment