7e47ce238b
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
51 lines
1.2 KiB
PHP
51 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace Cms\Request\V20190101;
|
|
|
|
/**
|
|
* @deprecated Please use https://github.com/aliyun/openapi-sdk-php
|
|
*
|
|
* Request of PutCustomEvent
|
|
*
|
|
* @method array getEventInfos()
|
|
*/
|
|
class PutCustomEventRequest extends \RpcAcsRequest
|
|
{
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $method = 'POST';
|
|
|
|
/**
|
|
* Class constructor.
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct(
|
|
'Cms',
|
|
'2019-01-01',
|
|
'PutCustomEvent',
|
|
'cms'
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @param array $eventInfo
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setEventInfos(array $eventInfo)
|
|
{
|
|
$this->requestParameters['EventInfos'] = $eventInfo;
|
|
foreach ($eventInfo as $depth1 => $depth1Value) {
|
|
$this->queryParameters['EventInfo.' . ($depth1 + 1) . '.GroupId'] = $depth1Value['GroupId'];
|
|
$this->queryParameters['EventInfo.' . ($depth1 + 1) . '.Time'] = $depth1Value['Time'];
|
|
$this->queryParameters['EventInfo.' . ($depth1 + 1) . '.EventName'] = $depth1Value['EventName'];
|
|
$this->queryParameters['EventInfo.' . ($depth1 + 1) . '.Content'] = $depth1Value['Content'];
|
|
}
|
|
|
|
return $this;
|
|
}
|
|
}
|