Commit 2157569aab4594b7364d90e86826505025fd888b
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,7 +144,7 @@ const Audio = { | ||
| 144 | videoId: null, | 144 | videoId: null, |
| 145 | 145 | ||
| 146 | multipleCategory: 100005, | 146 | multipleCategory: 100005, |
| 147 | - tag: "test", | 147 | + tag: this.getChannelText(this.form.channelId), |
| 148 | ts: this.getTs(), | 148 | ts: this.getTs(), |
| 149 | timestamp: this.getTimeStamp(), | 149 | timestamp: this.getTimeStamp(), |
| 150 | masterId: all.secretUrls.masterIdMaster, | 150 | masterId: all.secretUrls.masterIdMaster, |
| @@ -311,6 +311,20 @@ const Audio = { | @@ -311,6 +311,20 @@ const Audio = { | ||
| 311 | Math.floor(Math.random() * 10000).toString() | 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 | // 获取认证token | 328 | // 获取认证token |
| 315 | getToken() { | 329 | getToken() { |
| 316 | let api = all.secretUrls.base + all.secretUrls.auth; | 330 | let api = all.secretUrls.base + all.secretUrls.auth; |
| @@ -342,8 +356,8 @@ const Audio = { | @@ -342,8 +356,8 @@ const Audio = { | ||
| 342 | .then((res) => { | 356 | .then((res) => { |
| 343 | if (res.data) { | 357 | if (res.data) { |
| 344 | setTimeout(() => { | 358 | setTimeout(() => { |
| 345 | - // console.log("jump"); | ||
| 346 | - window.location.replace("./success.html"); | 359 | + console.log("jump"); |
| 360 | + // window.location.replace("./success.html"); | ||
| 347 | }, 1000); | 361 | }, 1000); |
| 348 | } else { | 362 | } else { |
| 349 | setTimeout(() => { | 363 | setTimeout(() => { |