From ed09374932756582dd71e84178779b40bee2330d Mon Sep 17 00:00:00 2001 From: augushong Date: Mon, 12 May 2025 23:31:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0flow=5Furl=E6=9E=84?= =?UTF-8?q?=E4=BB=B6=E9=93=BE=E6=8E=A5=E7=9A=84=E6=96=B9=E6=B3=95=EF=BC=8C?= =?UTF-8?q?=E6=96=B9=E4=BE=BF=E6=8A=8A=E5=BD=93=E5=89=8DGET=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=B8=A6=E5=88=B0=E6=96=B0=E7=9A=84=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/base/helper.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/extend/base/helper.php b/extend/base/helper.php index 794999c..a1b0875 100644 --- a/extend/base/helper.php +++ b/extend/base/helper.php @@ -54,6 +54,24 @@ if (!function_exists('__url')) { } } +if(!function_exists('flow_url')) { + /** + * 基于当前页面的GET参数构建url + * @param string $url + * @param array $vars + * @param bool $suffix + * @param bool $domain + * @return string + * */ + function flow_url($url, array $vars = [], $suffix = true, $domain = false){ + $default_vars = Request::get(); + $vars = array_merge($default_vars, $vars); + return __url($url, $vars, $suffix, $domain); + } +} + + + if (!function_exists('password')) { /** * 密码加密算法.