Skip to content

Commit

Permalink
fix(shindanmaker): update API (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kittengarten authored Oct 9, 2024
1 parent 9bf5438 commit 9c87909
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shindanmaker/shindanmaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ func Shindanmaker(id int64, name string) (string, error) {
payload := &bytes.Buffer{}
writer := multipart.NewWriter(payload)
_ = writer.WriteField("_token", token)
_ = writer.WriteField("shindanName", name)
_ = writer.WriteField("hiddenName", "名無しのR")
_ = writer.WriteField("user_input_value_1", name)
_ = writer.WriteField("randname", "名無しのR")
_ = writer.WriteField("type", "name")
_ = writer.WriteField("shindan_token", shindantoken)
_ = writer.Close()
Expand All @@ -66,7 +66,7 @@ func Shindanmaker(id int64, name string) (string, error) {
cookie = ""
return "", errors.New("无法查找到结果, 请稍后再试")
}
var output = []string{}
output := []string{}
for child := list[0].FirstChild; child != nil; child = child.NextSibling {
text := xpath.InnerText(child)
switch {
Expand Down

0 comments on commit 9c87909

Please sign in to comment.