* [apiv2] Set GET variables from POST data

This commit is contained in:
朱金勇
2025-12-02 16:31:45 +08:00
committed by sunhao
parent 533db9b5bc
commit 20c95aecdc
+5
View File
@@ -399,6 +399,11 @@ class api extends router
if(in_array($this->action, array('post', 'put')))
{
$this->setFormData();
foreach($_POST as $key => $value)
{
if(isset($this->params[$key])) $this->params[$key] = $value;
}
}
return parent::loadModule();
}