This commit is contained in:
li 2022-10-09 11:12:47 +08:00
parent c4d5ac06d8
commit 97a59069ec

View File

@ -1722,3 +1722,12 @@ func TestDays(t *testing.T) {
d2, _ := time.Parse(DateTimeFormat, "2022-09-28")
fmt.Println("天数:", (d2.Unix()-d1.Unix())/24/3600)
}
func TestCreateAccessToken(t *testing.T) {
//token, err := auth.CreateAccessToken(34075903)
token, err := auth.CreateToken(34075903, "oOqYrhCNQRvVNAaEo4h4osoW", 259200)
if err != nil {
fmt.Println("err:", err)
}
fmt.Println("token:", token)
}