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
236b365d
authored
Oct 15, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整
parent
76032385
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
order/jingdiao/main.go
order/jingdiao/main.go
View file @
236b365d
...
...
@@ -53,10 +53,10 @@ func main() {
initDb
(
"Init"
,
util
.
Configs
.
Liexin_databases
.
Dns
)
initDb
(
"InitCmsDB"
,
util
.
Configs
.
Liexincms_databases
.
Dns
)
forever
:=
make
(
chan
bool
)
fmt
.
Println
(
"执行完成后, 按 CTRL+C 退出程序..."
)
if
StartTime
!=
""
&&
EndTime
!=
""
{
// 开始时间和结束时间都存在
forever
:=
make
(
chan
bool
)
fmt
.
Println
(
"执行完成后, 按 CTRL+C 退出程序..."
)
diff_day
:=
handle
.
GetDiffDay
(
StartTime
,
EndTime
)
// 开始日期时间戳
...
...
@@ -77,6 +77,9 @@ func main() {
<-
forever
}
else
if
StartTime
!=
""
{
// 仅存在开始时间
forever
:=
make
(
chan
bool
)
fmt
.
Println
(
"执行完成后, 按 CTRL+C 退出程序..."
)
// 开始日期时间戳
start
,
_
:=
time
.
ParseInLocation
(
"2006-01-02"
,
StartTime
,
time
.
Local
)
start_time
:=
start
.
Unix
()
...
...
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