32 lines
830 B
PHP
32 lines
830 B
PHP
<?php
|
|
|
|
namespace Modules\EcommerceFinance\Notifications;
|
|
|
|
use Illuminate\Notifications\Notification;
|
|
|
|
class PinduoduoOpeningBalanceAlert extends Notification
|
|
{
|
|
/**
|
|
* @param list<array{store_name:string,month:string,reason:string}> $issues
|
|
*/
|
|
public function __construct(private readonly array $issues)
|
|
{
|
|
}
|
|
|
|
/** @return list<string> */
|
|
public function via(object $notifiable): array
|
|
{
|
|
return ['database'];
|
|
}
|
|
|
|
/** @return array<string,mixed> */
|
|
public function toArray(object $notifiable): array
|
|
{
|
|
return [
|
|
'title' => '拼多多店铺期初自动补录失败',
|
|
'description' => '聚水潭平台资金账户余额没有通过自动校验,账单仍保留在期初未就绪。',
|
|
'issues' => $this->issues,
|
|
];
|
|
}
|
|
}
|