From ff07696826cb75c4dd9795cf1038e3c1293014f1 Mon Sep 17 00:00:00 2001 From: tablee Date: Wed, 9 Aug 2017 22:15:29 +0800 Subject: [PATCH] add download stat --- CHANGELOG.md | 1 + README.md | 2 ++ config/config.js | 2 +- core/services/app-manager.js | 3 ++- 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..ce8ae7ed --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1 @@ +# Changelog for code-push-server \ No newline at end of file diff --git a/README.md b/README.md index 86972353..e5b08d36 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # CodePush Server [source](https://github.com/lisong/code-push-server) +[![NPM](https://nodei.co/npm/code-push-server.svg?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/code-push-server/) + [![NPM Version](https://img.shields.io/npm/v/code-push-server.svg)](https://npmjs.org/package/code-push-server) [![Node.js Version](https://img.shields.io/node/v/code-push-server.svg)](https://nodejs.org/en/download/) [![Linux Status](https://img.shields.io/travis/lisong/code-push-server/master.svg?label=linux)](https://travis-ci.org/lisong/code-push-server) diff --git a/config/config.js b/config/config.js index 79c4638b..ecdc3e3c 100644 --- a/config/config.js +++ b/config/config.js @@ -69,7 +69,7 @@ config.development = { }, // Config for smtp email,register module need validate user email project source https://github.com/nodemailer/nodemailer smtpConfig:{ - host: "smtp.mxhichina.com", + host: "smtp.aliyun.com", port: 465, secure: true, auth: { diff --git a/core/services/app-manager.js b/core/services/app-manager.js index 0d484b49..d180d0d3 100644 --- a/core/services/app-manager.js +++ b/core/services/app-manager.js @@ -129,7 +129,8 @@ proto.getAppDetailInfo = function (appInfo, currentUid) { return _.get(item, 'name'); }), - name: appInfo.get('name') + name: appInfo.get('name'), + id: appInfo.get('id') }); }); };