|
|
@@ -8,7 +8,7 @@ import java.nio.file.Path;
|
|
|
|
|
|
public class AuthDiag {
|
|
|
public static void main(String[] args) throws Exception {
|
|
|
- Path p = Path.of("C:/Users/Administrator/WorkBuddy/2026-10-17-12-27-10/java-rewrite/test-runtime/cache/a9/3029ed2d7a32cb7772b841e3c3a68a.php");
|
|
|
+ Path p = Path.of("F:/shop/java-rewrite/test-runtime/cache/a9/3029ed2d7a32cb7772b841e3c3a68a.php");
|
|
|
byte[] content = Files.readAllBytes(p);
|
|
|
System.out.println("file len = " + content.length);
|
|
|
System.out.println("head32 = " + new String(content, 0, 32, java.nio.charset.StandardCharsets.UTF_8).replace("\n", "\\n"));
|
|
|
@@ -24,7 +24,7 @@ public class AuthDiag {
|
|
|
ThinkFileCacheTokenStore store = new ThinkFileCacheTokenStore();
|
|
|
Field f = ThinkFileCacheTokenStore.class.getDeclaredField("cachePath");
|
|
|
f.setAccessible(true);
|
|
|
- f.set(store, "C:/Users/Administrator/WorkBuddy/2026-10-17-12-27-10/java-rewrite/test-runtime/cache");
|
|
|
+ f.set(store, "F:/shop/java-rewrite/test-runtime/cache");
|
|
|
LoginInfo info = store.getLoginInfo("testtoken123");
|
|
|
System.out.println("token resolve: " + (info == null ? "null" : "storeId=" + info.getStoreId() + " login=" + info.isLogin() + " userId=" + info.getStoreUserId()));
|
|
|
}
|