🎨 reqId 请求为空时返回值必须包含该字段

This commit is contained in:
Liang Ding 2022-05-31 11:50:18 +08:00
parent ccc67d7faa
commit c07c92417b
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 18 additions and 1 deletions

View file

@ -154,6 +154,12 @@ func searchRefBlock(c *gin.Context) {
return
}
reqId := arg["reqId"]
ret.Data = map[string]interface{}{"reqId": reqId}
if nil == arg["id"] {
return
}
rootID := arg["rootID"].(string)
id := arg["id"].(string)
keyword := arg["k"].(string)