瀏覽代碼

update

master
shenjiachi 2 天之前
父節點
當前提交
85757e2f16
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      app/svc/svc_home_page.go

+ 4
- 1
app/svc/svc_home_page.go 查看文件

@@ -22,7 +22,10 @@ func CalcTodayEggEnergyPriceRises(engine *xorm.Engine, now time.Time) (err error
return err, 0, false, "", ""
}
initialPrice = m.Price
yesterdayPrice, _ := decimal.NewFromString(m.Price)
if initialPrice == "" {
initialPrice = "1"
}
yesterdayPrice, _ := decimal.NewFromString(initialPrice)
coreDataDb := implement.NewEggEnergyCoreDataDb(db.Db)
coreData, err := coreDataDb.EggEnergyCoreDataGet()
if err != nil {


Loading…
取消
儲存