This commit is contained in:
shoopea 2019-06-06 14:25:05 +08:00
parent 7e3d051e44
commit 10a0631ecb

4
msg.go
View File

@ -1,7 +1,6 @@
package main
import (
"encoding/json"
"fmt"
"log"
"regexp"
@ -49,8 +48,7 @@ func parseSubTypeMessageAuctionAnnounce(m *ChatWarsMessage, r *regexp.Regexp) (*
cwm.Price = int32(p)
cwm.Status = r.ReplaceAllString(m.Text, "${Status}")
cwm.End, _ = fromChatWarsDate(r.ReplaceAllString(m.Text, "${End}"))
b, _ := json.Marshal(cwm)
fmt.Printf("%s\n", string(b))
return &cwm, nil
}