Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
seymourtang committed Dec 28, 2023
2 parents b170b17 + ac2b17f commit 487b834
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 @@ -111,7 +111,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 487b834

Please sign in to comment.