初始化项目:添加后端代码、ThinkPHP框架、前端资源
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the overtrue/wechat.
|
||||
*
|
||||
* (c) overtrue <i@overtrue.me>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
namespace TuzhiEasyWeChat\Kernel\Messages;
|
||||
|
||||
/**
|
||||
* Class Transfer.
|
||||
*
|
||||
* @property string $to
|
||||
* @property string $account
|
||||
*/
|
||||
class Transfer extends Message
|
||||
{
|
||||
/**
|
||||
* Messages type.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $type = 'transfer_customer_service';
|
||||
|
||||
/**
|
||||
* Properties.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $properties = [
|
||||
'account',
|
||||
];
|
||||
|
||||
/**
|
||||
* Transfer constructor.
|
||||
*/
|
||||
public function __construct(string $account = null)
|
||||
{
|
||||
parent::__construct(compact('account'));
|
||||
}
|
||||
|
||||
public function toXmlArray()
|
||||
{
|
||||
return empty($this->get('account')) ? [] : [
|
||||
'TransInfo' => [
|
||||
'KfAccount' => $this->get('account'),
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user