1 Star 0 Fork 0

h79/gothird

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
baidu
dingtalk
feishu
filter
fxg
gdt
notify
ocean
result
taobao
token
access
validate
api.go
app.go
child.go
config.go
const.go
file.go
item.go
mgr.go
realid.go
structs.go
ticket.go
time.go
token.go
token_test.go
tokenimpl.go
urlFuncs.go
weixin
.gitignore
LICENSE
Makefile
README.md
doc.go
error.md
go.mod
go.sum
version.go
克隆/下载
time.go 326 Bytes
一键复制 编辑 原始数据 按行查看 历史
huqiuyun 提交于 2年前 . token bug
package token
import "time"
type updateTime struct {
createAt int64
updateAt int64
}
func (u *updateTime) Update() {
u.updateAt = time.Now().Unix()
}
func (u *updateTime) Complete() {
u.createAt = time.Now().Unix()
u.updateAt = u.createAt
}
func (u *updateTime) HasUpdate() bool {
return u.updateAt != u.createAt
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/h79/gothird.git
git@gitee.com:h79/gothird.git
h79
gothird
gothird
v1.0.57

搜索帮助