点歌置顶

This commit is contained in:
2025-11-13 10:30:47 +08:00
parent 2c5d80dc45
commit 59af01983e

View File

@@ -128,4 +128,20 @@ class SingerSong extends BaseCom
}
//歌曲置顶
public function singerSongTop()
{
$id = input('id', 0);
if (!$id) {
return V(0, '请选择歌曲');
}
$reslut = db::name('vs_song_log')->where(['id' => $id])->update(['sort' => time()]);
if ($reslut) {
return V(1, '置顶成功');
} else {
return V(0, '置顶失败');
}
}
}