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.

21 lines
457 B

<?php
namespace app\hejiang;
class Request extends \yii\web\Request
{
public function getParam($name, $defaultValue = null)
{
$queryParam = $this->getQueryParam($name);
if ($queryParam !== null) {
return $queryParam;
}
$bodyParam = $this->getBodyParam($name);
if ($bodyParam !== null) {
return $bodyParam;
}
return $defaultValue;
}
}