Skip to content

Commit

Permalink
Fix a fatal bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
zicla committed Jul 6, 2018
1 parent fbb388b commit a7f2d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest/alien_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ func (this *AlienController) Download(writer http.ResponseWriter, request *http.
}

//下载之后立即过期掉。
downloadToken.ExpireTime = time.Now()
downloadToken.ExpireTime = time.Now().AddDate(0, 0, 1);
this.downloadTokenDao.Save(downloadToken)

} else {
Expand Down

0 comments on commit a7f2d85

Please sign in to comment.