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 }