|
|
@@ -12,10 +12,10 @@ import (
|
|
|
func TestCreateJWT(t *testing.T) {
|
|
|
l := new(auth.LoginByWeixinLogic)
|
|
|
payloads := map[string]interface{}{
|
|
|
- "userId": 37,
|
|
|
+ "userId": 35,
|
|
|
"sessionKey": "sessionKey",
|
|
|
}
|
|
|
- fmt.Println(l.CreateJWT(1626224284, "6hy789iu87", payloads, 604800))
|
|
|
+ fmt.Println(l.CreateJWT(1626837985, "6hy789iu87", payloads, 604800))
|
|
|
}
|
|
|
|
|
|
func TestRflect(t *testing.T) {
|