From 993fc51fbd84829de1fc877e1b3cc9458596c82b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A1=E6=A0=8B?= Date: Tue, 14 Sep 2021 14:55:58 +0800 Subject: [PATCH] * adjust for flow. --- framework/router.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/framework/router.class.php b/framework/router.class.php index a137f1faba..0bb6ac5132 100755 --- a/framework/router.class.php +++ b/framework/router.class.php @@ -513,12 +513,14 @@ class router extends baseRouter extract($params); // $path = '/index.php'; $query = 'm=$module&f=browse&mode=search&label=1'; parse_str($query, $params); // $params = array('m' => $module, 'f' => 'browse', 'mode' = 'search', 'label' => 1); + $params = array_reverse($params); // $params = array('label' => 1, 'mode' => 'search'); + if($methodName == 'operate') $params['action'] = $params[$this->config->methodVar]; + if($methodName == 'batchOperate') $params['action'] = $params[$this->config->methodVar]; + /* Remove module and method. */ unset($params[$this->config->moduleVar]); // $params = array('f' => 'browse', 'mode' => 'search', 'label' => 1); unset($params[$this->config->methodVar]); // $params = array('mode' => 'search', 'label' => 1); - $params = array_reverse($params); // $params = array('label' => 1, 'mode' => 'search'); - /* Prepend other params. */ if($methodName == 'browse') {