Skip to content

Commit

Permalink
fix issue for keyword request
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeecn committed Feb 10, 2020
1 parent ef73b66 commit a0f8dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/nlp/keyword.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (m Keyword) Default(title, content string) (KeywordResponse, error) {
body := utils.MustJson(KeywordBody{title, content})
logrus.Debugf("[keyword] %s", body)

_, respBody, errs := aip.Post(address).Send(string(body)).EndStruct(&resp)
_, respBody, errs := aip.Post(keyword).Send(string(body)).EndStruct(&resp)
if len(errs) > 0 {
return resp, errs[0]
}
Expand Down

0 comments on commit a0f8dd0

Please sign in to comment.