2026-03-21 02:55:24 +08:00
|
|
|
<?php
|
2026-03-29 11:22:52 +08:00
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | Author: ScottPan Team
|
|
|
|
|
// +----------------------------------------------------------------------
|
2026-03-21 02:55:24 +08:00
|
|
|
|
|
|
|
|
namespace crmeb\services\wechat\message;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Transfer extends Message
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Messages type.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected string $type = 'transfer_customer_service';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Properties.
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
|
|
|
|
protected array $properties = [
|
|
|
|
|
'account',
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Transfer constructor.
|
|
|
|
|
*
|
|
|
|
|
* @param string|null $account
|
|
|
|
|
*/
|
|
|
|
|
public function __construct(string $account = null)
|
|
|
|
|
{
|
|
|
|
|
parent::__construct(compact('account'));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return array
|
|
|
|
|
* @author 等风来
|
|
|
|
|
* @email 136327134@qq.com
|
|
|
|
|
* @date 2023/9/26
|
|
|
|
|
*/
|
|
|
|
|
public function toXmlArray(): array
|
|
|
|
|
{
|
|
|
|
|
return empty($this->get('account')) ? [] : [
|
|
|
|
|
'TransInfo' => [
|
|
|
|
|
'KfAccount' => $this->get('account'),
|
|
|
|
|
],
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|