Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang_asynctask
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
22713843
authored
May 26, 2021
by
Joneq
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://119.23.72.7/sunlong_v5/golang-asynctask
parents
c0380a4d
655e4321
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
6 deletions
app/service/wechat_yunxin/wechat_service.go
config/prod/config.toml
config/prod/db.toml
go.mod
go.sum
app/service/wechat_yunxin/wechat_service.go
View file @
22713843
...
...
@@ -20,10 +20,10 @@ func (t *RecvPro) Consumer(dataByte []byte) error {
//消息已经消费3次 失败了 请进行处理
func
(
t
*
RecvPro
)
FailAction
(
err
error
,
dataByte
[]
byte
)
error
{
logger
.
Instance
(
"
crmuser_to_erp
"
)
.
Error
(
"任务处理失败了,我要进入db日志库了"
)
logger
.
Instance
(
"
crmuser_to_erp
"
)
.
Error
(
"任务处理失败了,发送钉钉消息通知主人"
)
logger
.
Instance
(
"
crmuser_to_erp
"
)
.
Error
(
string
(
dataByte
))
logger
.
Instance
(
"
crmuser_to_erp
"
)
.
Error
(
"错误原因:%s"
,
err
)
logger
.
Instance
(
"
wechat_yunxin
"
)
.
Error
(
"任务处理失败了,我要进入db日志库了"
)
logger
.
Instance
(
"
wechat_yunxin
"
)
.
Error
(
"任务处理失败了,发送钉钉消息通知主人"
)
logger
.
Instance
(
"
wechat_yunxin
"
)
.
Error
(
string
(
dataByte
))
logger
.
Instance
(
"
wechat_yunxin
"
)
.
Error
(
"错误原因:%s"
,
err
)
return
nil
}
...
...
config/prod/config.toml
View file @
22713843
...
...
@@ -15,7 +15,7 @@ queue_name="bus_crm_com_user_to_erp"
routing_key=
"maxwell_liexin_crm.lie_invoice_company "
exchange=
"maxwell_crm"
type=
"direct"
dns=
"amqp://
WmsQue:EizM9I1TAxoO0tmzoOm@172.18.137.3
3:5672/"
dns=
"amqp://
huntmouser:jy2y2900@172.18.137.2
3:5672/"
...
...
config/prod/db.toml
View file @
22713843
...
...
@@ -8,6 +8,13 @@ ShowSQL = true
table_prefix
=
"lie_"
max_conn_life_time
=
100
[liexin]
data_source_name
=
"huntdbuser:mLssy2@@!!@$#yy@tcp(172.18.137.21:3306)/hunt2016?charset=utf8&parseTime=true&loc=Asia%2FShanghai"
max_open_conn
=
0
max_idle_conn
=
0
table_prefix
=
"lie_"
max_conn_life_time
=
100
[scm_data]
dns
=
"HgScmjzztp:Stlp0@#!02913441mt@tcp(172.18.137.35:3306)/liexin_scm_data?charset=utf8&parseTime=true&loc=Asia%2FShanghai"
...
...
go.mod
View file @
22713843
...
...
@@ -11,7 +11,7 @@ require (
github.com/ichunt2019/cfg v0.0.0-20210310074903-4b1bcab17717
github.com/ichunt2019/go-redis-pool v0.0.0-20210305064829-86b9011c57f5
github.com/ichunt2019/golang-rbmq-sl v0.0.0-20200515075131-59a37ab77d7d
github.com/ichunt2019/lxLog v0.0.0-20210
226024426-781becb3c042
github.com/ichunt2019/lxLog v0.0.0-20210
526032824-fd07e8b73ce0
github.com/jmoiron/sqlx v1.3.3
github.com/spf13/viper v1.7.1
github.com/syyongx/php2go v0.9.4
...
...
go.sum
View file @
22713843
This diff is collapsed.
Click to expand it.
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