WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit ae050ef

Browse files
committed
搜索结果屏蔽
1 parent cd0900a commit ae050ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

controllers/api/CommonController.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,10 @@ func (this *CommonController) SearchDoc() {
471471
this.Response(http.StatusBadRequest, messageBadRequest)
472472
}
473473

474+
if models.NewOption().IsResponseEmptyForAPP(this.Version, wd) {
475+
this.Response(http.StatusOK, messageSuccess, map[string]interface{}{"total": 0})
476+
}
477+
474478
var (
475479
page, _ = this.GetInt("page", 1)
476480
size, _ = this.GetInt("size", 10)

0 commit comments

Comments
 (0)