mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
服务列表查询、上下线
This commit is contained in:
@@ -55,11 +55,11 @@ var ApiUtil = (function () {
|
||||
, getUrl: function () {
|
||||
return url;
|
||||
}
|
||||
, createUrl: function (uri) {
|
||||
, createUrl: function (uri, params) {
|
||||
if (!uri) {
|
||||
throw new Error('name不能为空');
|
||||
throw new Error('uri不能为空');
|
||||
}
|
||||
return url + formatUri(uri);
|
||||
return url + formatUri(uri) + (params ? '?data=' + encodeURIComponent(JSON.stringify(params)) : '');
|
||||
}
|
||||
, getParam: function (paramName) {
|
||||
return params[paramName];
|
||||
|
Reference in New Issue
Block a user