efront 2.47.0 → 2.47.1
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 +4 -1
- package/coms/zimoli/data.js +5 -1
- package/debug.log +1 -0
- 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
|
@@ -12,11 +12,14 @@
|
|
|
12
12
|
<meta name="viewport" content="initial-scale=1,maximum-scale=1,width=device-width" />
|
|
13
13
|
<title>酷狗尊享版</title>
|
|
14
14
|
<script deleteoncompile efrontloader>
|
|
15
|
-
// 若要在开发环境使用内置组件,请保留此script
|
|
15
|
+
// 若要在开发环境使用内置组件,请保留此script标签中的代码,在编译发布时,这里的代码会自动删除
|
|
16
16
|
</script>
|
|
17
17
|
<script>
|
|
18
18
|
cross_host = 'efront.cc';
|
|
19
19
|
</script>
|
|
20
|
+
<script deleteoncompile>
|
|
21
|
+
cross_host = '';
|
|
22
|
+
</script>
|
|
20
23
|
<style>
|
|
21
24
|
*,
|
|
22
25
|
::before,
|
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) {
|
package/debug.log
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
[1106/041816.465:ERROR:registration_protocol_win.cc(102)] CreateFile: ϵͳ�Ҳ���ָ�����ļ��� (0x2)
|
|
2
2
|
[1114/175715.384:ERROR:registration_protocol_win.cc(102)] CreateFile: ϵͳ�Ҳ���ָ�����ļ��� (0x2)
|
|
3
|
+
[1115/022347.226:ERROR:registration_protocol_win.cc(102)] CreateFile: ϵͳ�Ҳ���ָ�����ļ��� (0x2)
|