From 80dfd62d4905ebf4878254dae7e0812fa3fac477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E9=87=91=E5=8B=87?= Date: Fri, 24 Oct 2025 10:25:14 +0800 Subject: [PATCH] * [apiv2] Set GET variables from POST data --- framework/api/router.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/framework/api/router.class.php b/framework/api/router.class.php index 0746badc95..2a08fb8fec 100644 --- a/framework/api/router.class.php +++ b/framework/api/router.class.php @@ -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(); }