不能点自己的歌曲

This commit is contained in:
2025-11-14 17:21:52 +08:00
parent 9aac2ff737
commit 6db7935df2

View File

@@ -146,7 +146,7 @@ class SingerSong extends Model
return ['code' => 0, 'msg' => '歌曲不存在', 'data' => null]; return ['code' => 0, 'msg' => '歌曲不存在', 'data' => null];
} }
//查询歌曲是否是自己的 //查询歌曲是否是自己的
if ($song['user_id'] != $user_id) { if ($song['user_id'] == $user_id) {
return ['code' => 0, 'msg' => '不能点自己歌曲', 'data' => null]; return ['code' => 0, 'msg' => '不能点自己歌曲', 'data' => null];
} }
//查询用户余额 //查询用户余额