diff --git a/module/ad_get.js b/module/ad_get.js index 8d3c48b..742107a 100644 --- a/module/ad_get.js +++ b/module/ad_get.js @@ -7,8 +7,7 @@ module.exports = async (query, request) => { type_ids: query.type_ids || '["400002_0"]', } - const option = createOption(query, 'xeapi') - option.checkToken = 'v2' + const option = createOption(query, 'xeapi', 'v3') const res = await request(`/api/ad/get`, data, option) const raw = res.body diff --git a/module/ad_listening_rights_gain.js b/module/ad_listening_rights_gain.js index e65c046..9c7d108 100644 --- a/module/ad_listening_rights_gain.js +++ b/module/ad_listening_rights_gain.js @@ -75,7 +75,7 @@ module.exports = async (query, request) => { const res = await request( `/api/ad/listening/rights/gain`, data, - createOption(query, 'eapi', 'v2'), + createOption(query, 'xeapi', 'v3'), ) return { diff --git a/module/comment.js b/module/comment.js index c12f5d0..1ff9102 100644 --- a/module/comment.js +++ b/module/comment.js @@ -25,6 +25,6 @@ module.exports = (query, request) => { return request( `/api/resource/comments/${query.t}`, data, - createOption(query, 'xeapi', 'v3'), + createOption(query, 'eapi', 'v2'), ) } diff --git a/public/docs/favicon.ico b/public/docs/favicon.ico deleted file mode 100644 index 976cb56..0000000 Binary files a/public/docs/favicon.ico and /dev/null differ diff --git a/public/free_listen.html b/public/free_listen.html index 1cfe4ff..01f974f 100644 --- a/public/free_listen.html +++ b/public/free_listen.html @@ -172,7 +172,7 @@ setTag('s1tag', 'busy', '注册中…') setNum('s1num', false) try { - const res = await fetch(nocache(base + '/register/checktoken/v2?refresh=1')) + const res = await fetch(nocache(base + '/register/checktoken/v3?refresh=1')) const data = await res.json() $('s1pre').textContent = JSON.stringify(data, null, 2) if (data.token) { diff --git a/public/ugc.html b/public/ugc.html index 1fe8d75..b258bd2 100644 --- a/public/ugc.html +++ b/public/ugc.html @@ -1,236 +1,701 @@ - - - - - - - 云小编任务中心 - - + + + +
+

云小编任务中心

+

管理云音乐审核任务、签到与会员权益领取

+ + 还没登录?点击登录 + + +
+ + +
+ 读取本地 Cookie + 清除 Cookie +
+
+ +
+
+ 用户信息 + +
+
+ 头像 + 未登录 + +
+
+ +
+
+ 会员领取 + +
+
+ 未载入 + +
+
+ +
+
+ 审核任务 + +
+
+ [0/0] 审核歌曲赚贡献分 (+66) + +
+ + + +
+ + + + +
+ + + + - setTimeout(function () { - song_btn1.disabled = song_btn2.disabled = song_btn3.disabled = false; - }, 3e3); - }); - } - /** - * 提交任务 - * @param {string} taskId - * @param {'1'|'2'|'3'} judgement - */ - function taskSubmit(taskId, judgement) { - song_btn1.disabled = song_btn2.disabled = song_btn3.disabled = true; - request( - 'thinktank/audit/resource/update', - { type: '4', taskId: taskId, judgement: judgement }, - function (res) { - var d = res.data; - if (d.result) taskStart(); - else alert('未知状态: ' + JSON.stringify(d)); - }, - ); - } - - document.getElementById('loadall').onclick = function () { - user_load.click(); - vip_load.click(); - task_load.click(); - }; - })(); - - - \ No newline at end of file +