Files
yusheng-php/extend/Yzh/Model/Custom/CustomRequest.php
2025-08-07 20:21:47 +08:00

20 lines
390 B
PHP

<?php
namespace Yzh\Model\Custom;
use Yzh\Model\BaseRequest;
/*
* 自定义请求
*/
class CustomRequest extends BaseRequest
{
public function __construct($params = array())
{
foreach (array_keys(get_object_vars($this)) as $property) {
if (isset($params[$property])) {
$this->{$property} = $params[$property];
}
}
}
}