Browse Source

还原部分代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/3557/head
zouap 2 years ago
parent
commit
afc362d047
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      routers/repo/user_data_analysis.go

+ 2
- 6
routers/repo/user_data_analysis.go View File

@@ -922,10 +922,6 @@ func QueryUserLoginInfo(ctx *context.Context) {


func QueryUserAnnualReport(ctx *context.Context) { func QueryUserAnnualReport(ctx *context.Context) {
log.Info("start to QueryUserAnnualReport ") log.Info("start to QueryUserAnnualReport ")
if ctx.User == nil {
ctx.JSON(http.StatusOK, nil)
} else {
result := models.QueryUserAnnualReport(ctx.User.ID)
ctx.JSON(http.StatusOK, result)
}
result := models.QueryUserAnnualReport(ctx.User.ID)
ctx.JSON(http.StatusOK, result)
} }

Loading…
Cancel
Save