This commit is contained in:
aozhiwei 2024-06-04 19:33:09 +08:00
parent e3e9ea64be
commit e883ab5fbc

View File

@ -35,11 +35,11 @@ class MailApiService extends BaseService {
'unikey' => $unikey, 'unikey' => $unikey,
'subject' => $subject, 'subject' => $subject,
'content' => $content, 'content' => $content,
'recipients' => array( 'recipients' => json_encode(array(
array( array(
'account_id' => $to, 'account_id' => $to,
) )
), )),
'attachments' => json_encode($attachments), 'attachments' => json_encode($attachments),
'sendtime' => myself()->_getNowTime(), 'sendtime' => myself()->_getNowTime(),
'expiretime' => myself()->_getNowTime() + 3600 * 24 * 365 * 10, 'expiretime' => myself()->_getNowTime() + 3600 * 24 * 365 * 10,