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
524692dd
authored
Jan 27, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
精简
parent
f2e40aae
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
2 deletions
special/activity_statistics/logs/2021-01-22.log
special/activity_statistics/logs/2021-01-22.log.wf
special/activity_statistics/main.go
special/activity_view_statistics/main.go
special/activity_statistics/logs/2021-01-22.log
0 → 100644
View file @
524692dd
File mode changed
special/activity_statistics/logs/2021-01-22.log.wf
0 → 100644
View file @
524692dd
File mode changed
special/activity_statistics/main.go
View file @
524692dd
...
...
@@ -51,6 +51,7 @@ func initLog() {
func
initDB
()
{
dsn
:=
util
.
Configs
.
Liexin_databases
.
Dns
specialDsn
:=
util
.
Configs
.
Special_databases
.
Dns
//engine.GetLogger().
engine
,
err
=
gorose
.
Open
(
&
gorose
.
Config
{
Driver
:
"mysql"
,
Dsn
:
dsn
})
if
err
!=
nil
{
panic
(
err
)
...
...
special/activity_view_statistics/main.go
View file @
524692dd
...
...
@@ -79,7 +79,7 @@ type RecvPro struct {
func
(
t
*
RecvPro
)
Consumer
(
dataByte
[]
byte
)
(
err
error
)
{
var
viewData
model
.
ViewData
fmt
.
Println
(
string
(
dataByte
))
//
fmt.Println(string(dataByte))
if
err
=
json
.
Unmarshal
(
dataByte
,
&
viewData
);
err
!=
nil
{
logger
.
Error
(
err
.
Error
())
return
...
...
@@ -203,7 +203,7 @@ func (t *RecvPro) Consumer(dataByte []byte) (err error) {
}
func
(
t
*
RecvPro
)
FailAction
(
dataByte
[]
byte
)
error
{
fmt
.
Println
(
"任务处理失败了
,发送钉钉消息通知主人"
)
fmt
.
Println
(
"任务处理失败了
,数据是 : "
+
string
(
dataByte
)
)
return
nil
}
...
...
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