Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
seymourtang authored Dec 26, 2023
1 parent 629b5b8 commit ac2b17f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func notification(ctx context.Context, ch <-chan Event) {
}
url := fmt.Sprintf("https://api.day.app/%s/%s/%s", *key,
fmt.Sprintf("%s 有%.1f级地震发生了", time.UnixMilli(event.StartAt).In(tz).Format(time.DateTime), event.Magnitude),
fmt.Sprintf("地点:%s,东经:%f°,北纬:%f°,地震深度:%.1f公里", event.Epicenter, event.Longitude, event.Latitude, event.Depth))
fmt.Sprintf("地点:%s,东经:%.1f°,北纬:%.1f°,地震深度:%.1f公里", event.Epicenter, event.Longitude, event.Latitude, event.Depth))
req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
if err != nil {
return err
Expand Down

0 comments on commit ac2b17f

Please sign in to comment.