From ba2c9c779b37c344fb1255b4b956cd73c81e2229 Mon Sep 17 00:00:00 2001 From: timerzz Date: Tue, 3 Sep 2024 17:41:10 +0800 Subject: [PATCH] =?UTF-8?q?feat=20calculate-process=E6=B7=BB=E5=8A=A0creat?= =?UTF-8?q?eAt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- structs/utils/calculate-process.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/structs/utils/calculate-process.go b/structs/utils/calculate-process.go index 60dc8da..7d9f7e5 100644 --- a/structs/utils/calculate-process.go +++ b/structs/utils/calculate-process.go @@ -2,6 +2,7 @@ package utils import ( "strings" + "time" v2 "gitea.timerzz.com/kedaya_haitao/common/structs/v2" ) @@ -20,6 +21,7 @@ func CalculateProviderPrice(calculates []v2.CalculateProcess, env map[string]flo } } p.CalMark = strings.Join(calculateStrings, "\n") + p.CreatedAt = time.Now() return } @@ -37,5 +39,6 @@ func CalculateSellerPrice(calculates []v2.CalculateProcess, env map[string]float } } p.CalMark = strings.Join(calculateStrings, "\n") + p.CreatedAt = time.Now() return }