From dc8146ec3febe6fd6e4966a402967a9ea774460d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=AC=E6=98=8E?= <83812544+Ed1s0nZ@users.noreply.github.com> Date: Thu, 24 Apr 2025 11:11:18 +0800 Subject: [PATCH] Update scan.go --- scan.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scan.go b/scan.go index 8383785..8fee6d1 100644 --- a/scan.go +++ b/scan.go @@ -26,6 +26,7 @@ type Result struct { Result string `json:"result"` Reason string `json:"reason"` Confidence string `json:"confidence"` + Timestamp string `json:"timestamp"` } // 扫描结果 @@ -94,6 +95,7 @@ func scan() { resultOutput.Result = scanR.Res resultOutput.Reason = scanR.Reason resultOutput.Confidence = scanR.Confidence + resultOutput.Timestamp = time.Now().Format("2006-01-02 15:04:05") jsonData, err := json.Marshal(resultOutput) if err != nil { log.Fatalf("Error marshaling to JSON: %v", err)