From 3bb805de3e8f98da2d6ede321e26ccad50627334 Mon Sep 17 00:00:00 2001 From: mxshuai Date: Thu, 15 Aug 2019 10:04:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=8E=B7=E5=8F=96token?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3=E5=85=A5=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 ++- api/auth.js | 4 ++-- api/env.js | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 754386d..7d7cc67 100644 --- a/README.md +++ b/README.md @@ -3,5 +3,6 @@ ## Awesome project ### Getting started -1. set up your own corp id and corp secret in env.js +1. set up your own corp id ,corp secret and appkey in env.js 2. launch your server in your prayers +3. run "node start" diff --git a/api/auth.js b/api/auth.js index a1a8df9..d2ff963 100644 --- a/api/auth.js +++ b/api/auth.js @@ -6,8 +6,8 @@ module.exports = { getAccessToken: function(cb) { var path = '/gettoken?' + querystring.stringify({ - corpid: env.corpId, - corpsecret: env.secret + appkey: env.key, + appsecret: env.secret }); httpUtil.get(path, cb); }, diff --git a/api/env.js b/api/env.js index bc15686..09a0228 100644 --- a/api/env.js +++ b/api/env.js @@ -1,4 +1,5 @@ module.exports = { corpId: '', + key:'', secret: '' }; \ No newline at end of file From d63b8f9915b4f3fd2a954d91f9cc207048086980 Mon Sep 17 00:00:00 2001 From: mxshuai <1021752994@qq.com> Date: Wed, 4 Sep 2019 10:14:37 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7d7cc67..7cab995 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,4 @@ 1. set up your own corp id ,corp secret and appkey in env.js 2. launch your server in your prayers 3. run "node start" +4. 静态文件可以放在public目录之下