fix:
This commit is contained in:
parent
c4d5ac06d8
commit
97a59069ec
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user