-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from lhxcccccccccc/master
fix: [Severless官网]应用页面v3接口适配
- Loading branch information
Showing
8 changed files
with
455 additions
and
196 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
// 正式线上 | ||
var BASE_V2_URL = 'https://registry.devsapp.cn' | ||
var BASE_V3_URL = 'https://api.devsapp.cn/v3' | ||
// 正式线上 | ||
var BASE_V3_URL = 'https://api.devsapp.cn/v3' | ||
// 预发 | ||
// var BASE_V3_URL = 'https://pre-api.devsapp.cn/v3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
// 调用V3版本 搜索接口 | ||
function getPackagesSearchForV3(dataString, callback) { | ||
var base_url = BASE_V3_URL | ||
var common_params = 'platform=3&page=-1' | ||
if (dataString) { | ||
dataString = dataString + '&platform=3' | ||
dataString = dataString + '&'+ common_params | ||
} else { | ||
dataString = 'platform=3' | ||
dataString = common_params; | ||
} | ||
var url = base_url + '/packages/releases?'+ dataString | ||
_Get(url, function (result) { | ||
callback && callback(result) | ||
return ; | ||
}) | ||
} | ||
var V3_SEARCH_TYPE = { | ||
Component:1, // 组件 | ||
Plugin: 2, // 插件 | ||
Project: 3, // 应用 | ||
Application: 3, // 应用 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters