* [apiv2] Set GET variables from POST data

This commit is contained in:
朱金勇
2025-12-02 16:32:24 +08:00
committed by sunhao
parent 884692a2ff
commit 80dfd62d49
+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();
}