update parse time
This commit is contained in:
parent
0fa8592c65
commit
74e6c40a70
2
cron.go
2
cron.go
@ -62,7 +62,7 @@ func cronGetHammerTime() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
clt.Mux.Unlock()
|
clt.Mux.Unlock()
|
||||||
p := JobPayloadGetHammertime{}
|
p := JobPayloadGetHammerTime{}
|
||||||
b, _ := json.Marshal(&p)
|
b, _ := json.Marshal(&p)
|
||||||
err = createJobCallback(objSubTypeJobGetHammerTime, clt.TGUserID64, objSubTypeMessageTimeAck, b, 1*time.Minute)
|
err = createJobCallback(objSubTypeJobGetHammerTime, clt.TGUserID64, objSubTypeMessageTimeAck, b, 1*time.Minute)
|
||||||
logOnError(err, "cronGetHammerTime : createJobCallback")
|
logOnError(err, "cronGetHammerTime : createJobCallback")
|
||||||
|
2
msg.go
2
msg.go
@ -436,7 +436,7 @@ func parseSubTypeMessageTimeAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWars
|
|||||||
cwm.Hour, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Hour}"), 10, 64)
|
cwm.Hour, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Hour}"), 10, 64)
|
||||||
cwm.Minute, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Minute}"), 10, 64)
|
cwm.Minute, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Minute}"), 10, 64)
|
||||||
cwm.Day, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Day}"), 10, 64)
|
cwm.Day, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Day}"), 10, 64)
|
||||||
cwm.Month = int64(chatWarsMonth[r.ReplaceAllString(d, "${Month}")])
|
cwm.Month = int64(chatWarsMonth[r.ReplaceAllString(m.Text, "${Month}")])
|
||||||
cwm.Year, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Year}"), 10, 64)
|
cwm.Year, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Year}"), 10, 64)
|
||||||
cwm.Weather = r.ReplaceAllString(m.Text, "${Weather}")
|
cwm.Weather = r.ReplaceAllString(m.Text, "${Weather}")
|
||||||
cwm.WeatherNext = r.ReplaceAllString(m.Text, "${WeatherNext}")
|
cwm.WeatherNext = r.ReplaceAllString(m.Text, "${WeatherNext}")
|
||||||
|
Loading…
Reference in New Issue
Block a user