* [apiv2] Set GET variables from POST data

This commit is contained in:
朱金勇
2025-10-24 10:25:14 +08:00
committed by Gitfox
parent d127b68a3e
commit 90f0fb7efa
+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();
}