Browse Source

#2225

update
pull/2885/head
chenyifan01 3 years ago
parent
commit
8a57a4e128
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      routers/reward/point/limit.go

+ 6
- 2
routers/reward/point/limit.go View File

@@ -14,8 +14,12 @@ func GetSingleDailyPointLimitConfig(ctx *context.Context) {
ctx.JSON(http.StatusOK, response.ServerError(err.Error()))
return
}
resultMap := make(map[string]int64, 0)
resultMap["LimitNum"] = r.LimitNum
resultMap := make(map[string]interface{}, 0)
if r == nil {
resultMap["LimitNum"] = ""
} else {
resultMap["LimitNum"] = r.LimitNum
}
ctx.JSON(http.StatusOK, response.SuccessWithData(resultMap))
}



Loading…
Cancel
Save