mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 14:22:54 +09:00
FCM 요청 스키마 수정 및 배열 선언 가독성 개선
This commit is contained in:
parent
df76fa45c5
commit
f9521d4d93
2 changed files with 15 additions and 6 deletions
|
|
@ -125,9 +125,9 @@ class Push
|
|||
*
|
||||
* @return int|null
|
||||
*/
|
||||
public function getFrom(): ?int
|
||||
public function getFrom(): int
|
||||
{
|
||||
return $this->from;
|
||||
return intval($this->from);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -339,7 +339,7 @@ class Push
|
|||
|
||||
foreach($output->data as $row)
|
||||
{
|
||||
$result[$row->device_type] = $row->device_token;
|
||||
$result[$row->device_type][] = $row->device_token;
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue