mirror of http://gitlab.batiao8.com/yic/film.git
amount2
This commit is contained in:
parent
b412608145
commit
429e81f520
|
@ -89,7 +89,7 @@ func getInfo(devId string) ([]string, error) {
|
||||||
|
|
||||||
m2.EndTime = time.Now().Unix()
|
m2.EndTime = time.Now().Unix()
|
||||||
m2.Amount = goutil.If(m2.EndTime-m2.StartTime <= 600, 660,
|
m2.Amount = goutil.If(m2.EndTime-m2.StartTime <= 600, 660,
|
||||||
60*(m2.EndTime-m2.StartTime-600)+660)
|
(m2.EndTime-m2.StartTime-600)+660)
|
||||||
err = dao.NewNowCarDao().Update(m2)
|
err = dao.NewNowCarDao().Update(m2)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("db error :%s", err.Error())
|
log.Errorf("db error :%s", err.Error())
|
||||||
|
|
Loading…
Reference in New Issue