You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
503 B

<?php
namespace tencent\cos;
class Base
{
protected $config;
/**
* 构造函数
*/
public function __construct(array $data = [])
{
$this->config = $data;
}
/**
* 对结果进行转换
* @date 2022-11-29
*/
public function resultToArray($data)
{
$item = [];
foreach ($data as $key => $val) {
if (is_string($val)) {
$item[$key] = $val;
}
}
return $item;
}
}