Commit 4d621567 by 孙龙

up

parent 9b78daed
......@@ -23,7 +23,7 @@ func Init(dns string) error {
if err != nil {
return err
}
DB.SetMaxOpenConns(50)
DB.SetMaxOpenConns(20)
DB.SetMaxIdleConns(10)
return nil
}
......@@ -39,7 +39,7 @@ func InitLabelDB(dns string) error{
if err != nil {
return err
}
LabelDB.SetMaxOpenConns(50)
LabelDB.SetMaxOpenConns(20)
LabelDB.SetMaxIdleConns(10)
return nil
}
......@@ -54,7 +54,7 @@ func InitBomDB(dns string) error{
if err != nil {
return err
}
BomDB.SetMaxOpenConns(50)
BomDB.SetMaxOpenConns(20)
BomDB.SetMaxIdleConns(10)
return nil
}
......@@ -69,7 +69,7 @@ func InitCmslDB(dns string) error{
if err != nil {
return err
}
CmsDB.SetMaxOpenConns(50)
CmsDB.SetMaxOpenConns(20)
CmsDB.SetMaxIdleConns(10)
return nil
}
......
No preview for this file type
......@@ -81,6 +81,7 @@ type Ding struct {
TuangouWebhook string `toml:"tuangou_webhook"`
ErpLabelWebhook string `toml:"erpLabel_webhook"`
YaoHaoYouWebhook string `toml:"yaoHaoYou_hook"`
OrderProTrackWebhook string `toml:"orderProTrack_hook"`
BomCreateOrderhook string `toml:"bomCreateBom_hook"`
FkCompany string `toml:"fk_company"`
}
......
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