struct{}{}

This commit is contained in:
suyl
2021-07-22 17:07:26 +08:00
parent a6cdea6610
commit 08cdbe84cf
3 changed files with 9 additions and 8 deletions

View File

@@ -59,7 +59,8 @@ func SimFlowDaySettle() (err error) {
flowExpend.Flow, flowExpend.FlowUnit = putils.SplitFlowAndUnit(getCardInfoResult.CardFlow)
}
}
if flowExpend.Flow > 0 && flowExpend.FlowUnit != "" {
//可能有精度误差
if flowExpend.Flow > 0.1 && flowExpend.FlowUnit != "" {
err = dao.Insert(db, flowExpend)
}
//算是否超了一个月的流量了