* Refactor doc::getToAndCcList method.

This commit is contained in:
tianshujie
2023-12-11 11:10:26 +08:00
parent bdf0871ea5
commit f3eefa9c66
+3 -3
View File
@@ -1898,18 +1898,18 @@ class docModel extends model
}
/**
* 获取收信人和抄送人列表。
* Get toList and ccList.
*
* @param object $doc
* @param object $doc
* @access public
* @return bool|array
*/
public function getToAndCcList($doc)
public function getToAndCcList(object $doc): bool|array
{
/* Set toList and ccList. */
$toList = '';
$ccList = str_replace(' ', '', trim($doc->mailto, ','));
if(empty($toList))
{
if(empty($ccList)) return false;