Browse Source

更新

master
huangjiajun 10 months ago
parent
commit
edb8b586ac
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      hdl/hdl_upgrade.go

+ 3
- 3
hdl/hdl_upgrade.go View File

@@ -373,11 +373,11 @@ func GetFinishCount(blockStarChain string, engine *xorm.Engine, uid interface{},
return zhios_condition_statistics_utils.Float64ToStr(money), hasPay, payOrdId return zhios_condition_statistics_utils.Float64ToStr(money), hasPay, payOrdId
case 22: case 22:
lvTime := db.GetOneCirclesUserLvTime(engine, uid) lvTime := db.GetOneCirclesUserLvTime(engine, uid)
stime := time.Date(t.Year(), t.Month(), t.Day()-1, 0, 0, 0, 0, t.Location()).Format("2006-01-02 15:04:05")
stime := time.Date(t.Year(), t.Month(), t.Day()-1, 0, 0, 0, 0, t.Location()).Format("2006-01-02")
if lvTime != nil && lvTime.Date.IsZero() == false { if lvTime != nil && lvTime.Date.IsZero() == false {
stime = lvTime.Date.Format("2006-01-02 15:04:05")
stime = lvTime.Date.Format("2006-01-02")
} }
etime := t.Format("2006-01-02 15:04:05")
etime := t.Format("2006-01-02")
_, days, activity := one_circles.CalcUserContinuousDailyActivityDays(engine, dbName, int(zhios_condition_statistics_utils.AnyToInt64(uid)), stime, etime) _, days, activity := one_circles.CalcUserContinuousDailyActivityDays(engine, dbName, int(zhios_condition_statistics_utils.AnyToInt64(uid)), stime, etime)
if activity == false { if activity == false {
days = 0 days = 0


Loading…
Cancel
Save