8000 6.8 · githubsunyf/cms@b0a5f6c · GitHub
[go: up one dir, main page]

Skip to content

Commit b0a5f6c

Browse files
committed
6.8
1 parent 3d92378 commit b0a5f6c

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ SiteServer CMS 基于.NET 平台,能够以最低的成本、最少的人力投
88

99
项目发布的正式版本存放在 `master` 分支,当前的开发版本存放在 `dev` 分支
1010

11-
| 版本 | 编译状态 | 版本号 | 发布日期 |
12-
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
13-
| 正式版 | [![Build status](https://ci.appveyor.com/api/projects/status/plx37i94y9gsqkru/branch/master?svg=true)](https://ci.appveyor.com/project/starlying/cms/branch/master) | ![Nuget version](https://img.shields.io/nuget/v/SS.CMS.svg) | ![master last commit](https://img.shields.io/github/last-commit/siteserver/cms/master.svg) |
14-
| 开发版 | [![Build status](https://ci.appveyor.com/api/projects/status/plx37i94y9gsqkru/branch/dev?svg=true)](https://ci.appveyor.com/project/starlying/cms/branch/dev) | ![Myget version](https://img.shields.io/myget/siteserver/v/SS.CMS.svg) | ![dev last commit](https://img.shields.io/github/last-commit/siteserver/cms/dev.svg) |
11+
| 版本 | 编译状态 | 版本号 | 发布日期 |
12+
| ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
13+
| 正式版 | [![Build status](https://ci.appveyor.com/api/projects/status/plx37i94y9gsqkru/branch/master?svg=true)](https://ci.appveyor.com/project/starlying/cms/branch/master) | ![Nuget version](https://img.shields.io/nuget/v/SS.CMS.svg) | ![master last commit](https://img.shields.io/github/last-commit/siteserver/cms/master.svg) |
14+
| 开发版 | [![Build status](https://ci.appveyor.com/api/projects/status/plx37i94y9gsqkru/branch/staging?svg=true)](https://ci.appveyor.com/project/starlying/cms/branch/staging) | ![Nuget version](https://img.shields.io/nuget/vpre/SS.CMS.svg) | ![staging last commit](https://img.shields.io/github/last-commit/siteserver/cms/staging.svg) |
1515

1616
## 迭代计划
1717

@@ -108,4 +108,4 @@ SiteServer CMS 产品将在每个月底发布新的正式版本,我们将在
108108

109109
[GNU GENERAL PUBLIC LICENSE 3.0](LICENSE)
110110

111-
Copyright (C) 2003-2018 SiteServer CMS
111+
Copyright (C) 2003-2019 SiteServer CMS

SiteServer.Web/SiteServer/main.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ var methods = {
108108
var releaseInfo = res.value[i];
109109
if (!releaseInfo || !releaseInfo.version) continue;
110110
if (releaseInfo.pluginId == $packageIdSsCms) {
111-
$this.download(releaseInfo);
111+
$this.downloadSsCms(releaseInfo);
112112
} else {
113113
var installedPackages = $.grep($this.packageList, function (e) {
114114
return e.id == releaseInfo.pluginId;
@@ -132,24 +132,24 @@ var methods = {
132132
});
133133
},
134134

135-
download: function (package) {
135+
downloadSsCms: function (releaseInfo) {
136136
var $this = this;
137-
if (compareversion($this.currentVersion, package.version) != -1) return;
138-
var major = package.version.split('.')[0];
139-
var minor = package.version.split('.')[1];
137+
if (compareversion($this.currentVersion, releaseInfo.version) != -1) return;
138+
var major = releaseInfo.version.split('.')[0];
139+
var minor = releaseInfo.version.split('.')[1];
140140

141141
$api.post($urlDownload, {
142142
packageId: $packageIdSsCms,
143-
version: package.version
143+
version: releaseInfo.version
144144
}).then(function (response) {
145145
var res = response.data;
146146

147147
if (res.value) {
148148
$this.newVersion = {
149149
updatesUrl: 'http://www.siteserver.cn/updates/v' + major + '_' + minor + '/index.html',
150-
version: package.version,
151-
published: package.published,
152-
releaseNotes: package.releaseNotes
150+
version: releaseInfo.version,
151+
published: releaseInfo.published,
152+
releaseNotes: releaseInfo.releaseNotes
153153
};
154154
}
155155
});

0 commit comments

Comments
 (0)
0