mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
fix(backend): enhance share info validation to check for minimum view count
This commit is contained in:
@@ -97,7 +97,7 @@ func GetShareInfo(c echo.Context) error {
|
||||
if err != nil {
|
||||
return utils.HTTPErrorHandler(c, err)
|
||||
}
|
||||
if shareInfo == nil {
|
||||
if shareInfo == nil || shareInfo.ViewNum < 1 {
|
||||
return utils.HTTPErrorHandler(c, errors.New("分享不存在"))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user