点歌置顶
This commit is contained in:
@@ -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, '置顶失败');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user