MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / validateExpiredTime

Function validateExpiredTime

controller/redemption.go:188–193  ·  view source on GitHub ↗
(expired int64)

Source from the content-addressed store, hash-verified

186}
187
188func validateExpiredTime(expired int64) error {
189 if expired != 0 && expired < common.GetTimestamp() {
190 return errors.New("过期时间不能早于当前时间")
191 }
192 return nil
193}

Callers 2

AddRedemptionFunction · 0.85
UpdateRedemptionFunction · 0.85

Calls 1

GetTimestampFunction · 0.92

Tested by

no test coverage detected