用户修改歌曲数据
This commit is contained in:
@@ -62,6 +62,7 @@ class SingerSong extends BaseCom
|
||||
if (!$id) {
|
||||
return V(0, '请选择歌曲');
|
||||
}
|
||||
db::name('vs_singer_song')->where(['id' => $id])->update(['deletetime' => time()]);
|
||||
$song_name = input('song_name', 0);
|
||||
if (!$song_name) {
|
||||
return V(0, '请输入歌曲名称');
|
||||
@@ -71,10 +72,12 @@ class SingerSong extends BaseCom
|
||||
return V(0, '请选择礼物');
|
||||
}
|
||||
$gift_num = input('gift_num', 1);
|
||||
$reslut = db::name('vs_singer_song')->where(['id' => $id])->update([
|
||||
$reslut = db::name('vs_singer_song')->insert([
|
||||
'user_id' => $this->uid,
|
||||
'song_name' => $song_name,
|
||||
'gift_id' => $gift_id,
|
||||
'gift_num' => $gift_num,
|
||||
'createtime' => time(),
|
||||
]);
|
||||
if ($reslut) {
|
||||
return V(1, '修改成功');
|
||||
|
||||
Reference in New Issue
Block a user