bug修改

This commit is contained in:
2026-01-30 19:12:41 +08:00
parent 14f9ac26d4
commit ee533bbe73

View File

@@ -649,9 +649,20 @@ class Decorate extends Model
]);
//推送消息
$FromUserInfo = db::name('user')->where(['id' => $uid])->find();
$text = $FromUserInfo['nickname'] . ' 在本房间使用了房间热度卡 提升房间'.$increase_hot_value.'热度';
$text1 = $FromUserInfo['nickname'] . ' 在本房间使用了房间热度卡 提升房间'.$increase_hot_value.'热度';
$text = [
'FromUserInfo' => $FromUserInfo,
'ToUserInfo' => null,
'GiftInfo' => [
'gift_id' => 0,
'gift_name' => '房间热度卡',
'gift_icon' => null
],
'gift_num' => $num,
'text' => $text1
];
//聊天室推送系统消息
model('Chat')->sendMsg(1001,$room_id,$text);
model('Chat')->sendMsg(1005,$room_id,$text);
}else{
$map = [
'user_id' => $uid,
@@ -695,9 +706,20 @@ class Decorate extends Model
]);
//推送消息
$FromUserInfo = db::name('user')->where(['id' => $uid])->find();
$text = $FromUserInfo['nickname'] . ' 在本房间使用了房间热度卡 提升房间'.$increase_hot_value_all.'热度';
$text1 = $FromUserInfo['nickname'] . ' 在本房间使用了房间热度卡 提升房间'.$increase_hot_value_all.'热度';
$text = [
'FromUserInfo' => $FromUserInfo,
'ToUserInfo' => null,
'GiftInfo' => [
'gift_id' => 0,
'gift_name' => '房间热度卡',
'gift_icon' => null
],
'gift_num' => $num,
'text' => $text1
];
//聊天室推送系统消息
model('Chat')->sendMsg(1001,$room_id,$text);
model('Chat')->sendMsg(1005,$room_id,$text);
}
// 提交事务
Db::commit();