From 59af01983e3f84c7bd02780705eafe646888a701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Thu, 13 Nov 2025 10:30:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E6=AD=8C=E7=BD=AE=E9=A1=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/SingerSong.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/application/api/controller/SingerSong.php b/application/api/controller/SingerSong.php index 1cfe006..d69c704 100644 --- a/application/api/controller/SingerSong.php +++ b/application/api/controller/SingerSong.php @@ -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, '置顶失败'); + } + } + + } \ No newline at end of file