From 3154c2a1d3b063950508d909e7a00eb8681e7975 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期一, 23 十二月 2024 13:01:35 +0800
Subject: [PATCH] 获取tokeng
---
app.js | 4 ++++
thirdPartyApi.js | 3 ++-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/app.js b/app.js
index 1c11c5e..8bcb91f 100644
--- a/app.js
+++ b/app.js
@@ -75,6 +75,10 @@
`;
res.send(html);
});
+ app.get('/test', async (req, res) => {
+ const token=await thirdPartyApi.getAccessToken()
+ res.json(token);
+ });
// 定义 /webuser 路由处理器 用患者code 换信息
app.post('/webuser', async (req, res) => {
const mode=req.body
diff --git a/thirdPartyApi.js b/thirdPartyApi.js
index b47505b..7aa289f 100644
--- a/thirdPartyApi.js
+++ b/thirdPartyApi.js
@@ -96,7 +96,8 @@
module.exports = {
fetchThirdPartyDataNoToke,
- fetchThirdPartyData
+ fetchThirdPartyData,
+ getAccessToken
};
// 插入数据
--
Gitblit v1.8.0