交友房结束 清除所有魅力

This commit is contained in:
2025-08-30 09:56:56 +08:00
parent 0b5bd9f0e8
commit cdc2498f6b
2 changed files with 1 additions and 4 deletions

View File

@@ -137,7 +137,7 @@ class Friend extends Model
$text['friend_user'] = $return;
$text['friend_id'] = $id;
model('api/Chat')->sendMsg(1049,$room_id,$text);
model('Room')->clear_user_charm(db::name('vs_room')->where(['id' => $room_id])->value('user_id'), $room_id);
return ['code' => 1, 'msg' => '操作成功!', 'data' => $return];
}