efront 3.7.7 → 3.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/kugou/api.js +1 -1
- package/apps/kugou/index.html +3 -0
- package/coms/kugou/buildScroll.less +3 -0
- package/coms/zimoli/data.js +5 -1
- package/package.json +1 -1
- package/public/efront.js +1 -1
package/apps/kugou/api.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"singer-list": "get:[].singer-img-list>li singer/list/:id#href=a!href&=a!href\\singer-info&imgurl=img!_src&name=p|innerText",
|
|
13
13
|
"singer-info": "mget:[].singer-songs-list>li singer/info/:id#hash=!id&singer=.singer-name|innerText&name=.song-name|innerText&data=em/innerText"
|
|
14
14
|
},
|
|
15
|
-
"
|
|
15
|
+
"http://mobilecdn.kugou.com/": {
|
|
16
16
|
"search?keyword": "get:data.info api/v3/search/song?format=json&page=1&pagesize=30&showtype=1"
|
|
17
17
|
}
|
|
18
18
|
})
|
package/apps/kugou/index.html
CHANGED
package/coms/zimoli/data.js
CHANGED
|
@@ -155,6 +155,7 @@ function getUrlParamsForApi(api, url) {
|
|
|
155
155
|
cap.push(a.slice(1));
|
|
156
156
|
return r;
|
|
157
157
|
});
|
|
158
|
+
if (api.base) base = api.base + base;
|
|
158
159
|
var params = {};
|
|
159
160
|
url = url.replace(/[\?#]*$/g, function (match) {
|
|
160
161
|
match.split(/[&#\?]+/).forEach(function (s) {
|
|
@@ -844,7 +845,10 @@ var data = {
|
|
|
844
845
|
this.responseLoading(instance);
|
|
845
846
|
var params = privates.pack(sid, params1);
|
|
846
847
|
if (!privates.validApi(api, params)) throw aborted;
|
|
847
|
-
|
|
848
|
+
let url = api.url;
|
|
849
|
+
var base = api.base;
|
|
850
|
+
if (base) url = base + api.path;
|
|
851
|
+
var { method, uri, params, selector } = privates.prepare(api.method, url, params);
|
|
848
852
|
var promise = new Promise(function (ok, oh) {
|
|
849
853
|
var headers = api.headers;
|
|
850
854
|
if (headers) {
|