This commit is contained in:
jiangyong 2024-04-28 00:19:10 +08:00
parent b412608145
commit 429e81f520
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ func getInfo(devId string) ([]string, error) {
m2.EndTime = time.Now().Unix()
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)
if err != nil {
log.Errorf("db error :%s", err.Error())