mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 15:31:51 +08:00
allow anonymous makers
This commit is contained in:
parent
67e418bc4d
commit
42f22a4f09
6
app.py
6
app.py
@ -127,7 +127,11 @@ def route_api_songs():
|
|||||||
|
|
||||||
category_out = categories[song[11]] if song[11] in categories else ""
|
category_out = categories[song[11]] if song[11] in categories else ""
|
||||||
song_skin_out = song_skins[song[14]] if song[14] in song_skins else None
|
song_skin_out = song_skins[song[14]] if song[14] in song_skins else None
|
||||||
maker = {'name': song[18], 'url': song[19]} if song[17] else None
|
maker = None
|
||||||
|
if song[17] == 0:
|
||||||
|
maker = 0
|
||||||
|
elif song[17] > 0:
|
||||||
|
maker = {'name': song[18], 'url': song[19], 'id': song[17]}
|
||||||
|
|
||||||
songs_out.append({
|
songs_out.append({
|
||||||
'id': song_id,
|
'id': song_id,
|
||||||
|
@ -432,7 +432,7 @@ class SongSelect{
|
|||||||
this.toSongSelect()
|
this.toSongSelect()
|
||||||
}else if(moveBy === 1){
|
}else if(moveBy === 1){
|
||||||
this.toOptions(1)
|
this.toOptions(1)
|
||||||
}else if(moveBy === "maker" && this.songs[this.selectedSong].maker.url){
|
}else if(moveBy === "maker"){
|
||||||
window.open(this.songs[this.selectedSong].maker.url)
|
window.open(this.songs[this.selectedSong].maker.url)
|
||||||
}else if(moveBy === this.diffOptions.length + 4){
|
}else if(moveBy === this.diffOptions.length + 4){
|
||||||
this.state.ura = !this.state.ura
|
this.state.ura = !this.state.ura
|
||||||
@ -521,7 +521,7 @@ class SongSelect{
|
|||||||
if(this.state.locked === 0){
|
if(this.state.locked === 0){
|
||||||
if(223 < x && x < 367 && 118 < y && y < 422){
|
if(223 < x && x < 367 && 118 < y && y < 422){
|
||||||
return Math.floor((x - 223) / ((367 - 223) / 2))
|
return Math.floor((x - 223) / ((367 - 223) / 2))
|
||||||
}else if(this.songs[this.selectedSong].maker && this.songs[this.selectedSong].maker.url && x > 230 && x < 485 && y > 432 && y < 519) {
|
}else if(this.songs[this.selectedSong].maker && this.songs[this.selectedSong].maker.id > 0 && this.songs[this.selectedSong].maker.url && x > 230 && x < 485 && y > 432 && y < 519) {
|
||||||
return "maker"
|
return "maker"
|
||||||
}else if(550 < x && x < 1050 && 95 < y && y < 524){
|
}else if(550 < x && x < 1050 && 95 < y && y < 524){
|
||||||
var moveBy = Math.floor((x - 550) / ((1050 - 550) / 5)) + this.diffOptions.length
|
var moveBy = Math.floor((x - 550) / ((1050 - 550) / 5)) + this.diffOptions.length
|
||||||
@ -1479,7 +1479,7 @@ class SongSelect{
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if(currentSong.maker){
|
if(currentSong.maker !== null){
|
||||||
if (songSel) {
|
if (songSel) {
|
||||||
var _x = x + 38
|
var _x = x + 38
|
||||||
var _y = y + 10
|
var _y = y + 10
|
||||||
@ -1518,7 +1518,7 @@ class SongSelect{
|
|||||||
{outline: "#fff", letterBorder: 8},
|
{outline: "#fff", letterBorder: 8},
|
||||||
{fill: "#000"}
|
{fill: "#000"}
|
||||||
])
|
])
|
||||||
} else {
|
} else if(currentSong.maker && currentSong.maker.id > 0){
|
||||||
var _x = x + 62
|
var _x = x + 62
|
||||||
var _y = y + 380
|
var _y = y + 380
|
||||||
ctx.lineWidth = 5
|
ctx.lineWidth = 5
|
||||||
|
Loading…
Reference in New Issue
Block a user