Commit 2157569aab4594b7364d90e86826505025fd888b

Authored by 杨泽宇
1 parent 95c88523

temp changes

Showing 1 changed file with 17 additions and 3 deletions
src/js/audios.js
... ... @@ -144,7 +144,7 @@ const Audio = {
144 144 videoId: null,
145 145  
146 146 multipleCategory: 100005,
147   - tag: "test",
  147 + tag: this.getChannelText(this.form.channelId),
148 148 ts: this.getTs(),
149 149 timestamp: this.getTimeStamp(),
150 150 masterId: all.secretUrls.masterIdMaster,
... ... @@ -311,6 +311,20 @@ const Audio = {
311 311 Math.floor(Math.random() * 10000).toString()
312 312 );
313 313 },
  314 + getChannelText(id) {
  315 + if(id == 1278) {
  316 + return '热歌榜'
  317 + }
  318 + if(id == 1279) {
  319 + return '优秀作词榜'
  320 + }
  321 + if(id == 1280) {
  322 + return '优秀作曲榜'
  323 + }
  324 + if(id == 1281) {
  325 + return '其他'
  326 + }
  327 + },
314 328 // 获取认证token
315 329 getToken() {
316 330 let api = all.secretUrls.base + all.secretUrls.auth;
... ... @@ -342,8 +356,8 @@ const Audio = {
342 356 .then((res) => {
343 357 if (res.data) {
344 358 setTimeout(() => {
345   - // console.log("jump");
346   - window.location.replace("./success.html");
  359 + console.log("jump");
  360 + // window.location.replace("./success.html");
347 361 }, 1000);
348 362 } else {
349 363 setTimeout(() => {
... ...