|
|
@@ -151,11 +151,7 @@ func GetGrowData(c *gin.Context) { |
|
|
|
now := time.Now() |
|
|
|
dataDb := implement.NewPlatformGrowDataDb(db.Db) |
|
|
|
m, has, err := dataDb.PlatformGrowDataGetLastOne() |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR_DB_ORM, err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
if !has { |
|
|
|
if err != nil || !has { |
|
|
|
resp := md.GetPriceCurveResp{ |
|
|
|
XData: xData, |
|
|
|
YData: yData, |
|
|
|