From c29ea972404957ec24b76e50585be0915ab17018 Mon Sep 17 00:00:00 2001
From: frostime <frostime@foxmail.com>
Date: Mon, 22 May 2023 21:34:17 +0800
Subject: [PATCH] commit

---
 scripts/make_dev_link.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripts/make_dev_link.js b/scripts/make_dev_link.js
index 003edef..85131a2 100644
--- a/scripts/make_dev_link.js
+++ b/scripts/make_dev_link.js
@@ -11,10 +11,10 @@ const targetDir = '';
 //********************************************************************************************
 
 
-async function getSiYuanDir() {
+async function getSiYuanDir(token) {
     let url = 'http://127.0.0.1:6806/api/system/getConf';
     let header = {
-        // "Authorization": `Token ${token}`,
+        "Authorization": `Token ${token}`,
         "Content-Type": "application/json",
     }
     try {
@@ -24,13 +24,13 @@ async function getSiYuanDir() {
         });
         console.log(conf);
     } catch (e) {
-        console.log('Failed! Please make sure SiYuan is running');
+        console.log(e);
         process.exit(1);
     }
 }
 
 if (targetDir === '') {
-    await getSiYuanDir();
+    await getSiYuanDir('es7zy9zewgibc6dt');
     process.exit(0);
 }