Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
## 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"
4. 静态文件可以放在public目录之下
4 changes: 2 additions & 2 deletions api/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down
1 change: 1 addition & 0 deletions api/env.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
corpId: '',
key:'',
secret: ''
};