签约房 上麦 抱麦 收礼涨身价

This commit is contained in:
2025-11-25 17:10:19 +08:00
parent aebef67454
commit 5618d9e80c
4 changed files with 98 additions and 8 deletions

View File

@@ -196,7 +196,11 @@ class GiveGift extends Model
return ['code' => 0, 'msg' => '收礼人收益配置有误', 'data' => null];
}
//收礼人认证歌手等级升级
model('SingerSong')->singerLevelUp($to_id,$gift_price);
model('api/SingerSong')->singerLevelUp($to_id,$gift_price);
//收礼人身价计算
$coin_market_values = explode(',', get_system_config_value('coin_market_value'));
$change_value = ceil($gift_price / ($coin_market_values[0] ?? 100) * ($coin_market_values[1] ?? 1));
model('api/MarketValue')->change($to_id,$change_value,0);
//1聊天送礼物 2房间语聊送礼 3直播送礼 4动态打赏 5系统任务 6-cp房间送礼
if($from_type == 1 || $from_type == 2 || $from_type == 3 ||$from_type == 4 || $from_type == 6){