fix! некорректная отправка id квартиры plan7

This commit is contained in:
developer 2026-04-16 10:08:47 +08:00
parent 1b86db73f1
commit 73b6264300

View File

@ -233,7 +233,7 @@ private function createDeal($complexId, $room)
!$deal = Deal::create([ !$deal = Deal::create([
'agent_id' => $this->agentId, 'agent_id' => $this->agentId,
'complex_id' => $complexId, 'complex_id' => $complexId,
'plan7_data' => ($room) ? json_encode($room) : null 'plan7_data' => (is_array($room) && array_key_exists('id', $room)) ? json_encode($room) : null
]) ])
) { ) {
return false; return false;