Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
188
func
validateExpiredTime(expired int64) error {
189
if
expired != 0 && expired < common.GetTimestamp() {
190
return
errors.New(
"过期时间不能早于当前时间"
)
191
}
192
return
nil
193
}
Callers
2
AddRedemption
Function · 0.85
UpdateRedemption
Function · 0.85
Calls
1
GetTimestamp
Function · 0.92
Tested by
no test coverage detected