Commit 0a1add5b by 彭芳

[minor]: update config

parent 1e77500e
...@@ -5,7 +5,7 @@ server: ...@@ -5,7 +5,7 @@ server:
data: data:
database: database:
driver: mysql driver: mysql
source: adstest:Ey5M6GowXu!7@tcp(ads-mysql-test.adsdesk.cn:13316)/adsdesk_test2?charset=utf8&parseTime=True&loc=Local source: adsdesk:1QAZ2wsx@tcp(ads-mysql-online.adsdesk.cn:13307)/adsdesk?charset=utf8&parseTime=True&loc=Local
max_idle: 50 max_idle: 50
max_open: 100 max_open: 100
max_lifetime: 30s max_lifetime: 30s
\ No newline at end of file
...@@ -277,7 +277,7 @@ func (p *Campaign) getValidPlayRate() util.Float64 { ...@@ -277,7 +277,7 @@ func (p *Campaign) getValidPlayRate() util.Float64 {
} }
func (p *Campaign) getAveragePlayTimePerPlay() util.Float64 { func (p *Campaign) getAveragePlayTimePerPlay() util.Float64 {
return calcRate(float64(p.PlayDurationSum), float64(p.TotalPlay)) return calcRate(float64(p.PlayDurationSum), float64(p.TotalPlay)) / 1000
} }
func (p *Campaign) getPlayOverRate() util.Float64 { func (p *Campaign) getPlayOverRate() util.Float64 {
......
...@@ -3,8 +3,8 @@ package util ...@@ -3,8 +3,8 @@ package util
const ( const (
RequestKey = "request_id" RequestKey = "request_id"
Token = "token" Token = "token"
DefaultToken = "44444" DefaultToken = "a878dbebc902328b41dbf02aa87abb58"
CustomerId = "customer_id" CustomerId = "customer_id"
DefaultCustomerId = "10025" DefaultCustomerId = "10407"
StatusOK = "ok" StatusOK = "ok"
) )
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 to comment