From 2dfa8309210e3e8aae59e3d83ee6e73c8961995e Mon Sep 17 00:00:00 2001 From: chenl <461625388@qq.com> Date: Mon, 10 Dec 2018 10:15:26 +0800 Subject: [PATCH] u --- api/common/interface.func.php | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/common/interface.func.php b/api/common/interface.func.php index 6c8d282..c0065aa 100644 --- a/api/common/interface.func.php +++ b/api/common/interface.func.php @@ -46,12 +46,12 @@ function checkSign($data,$sysKey) { $str = ""; - foreach ($data as $key => $value) + foreach ($data as $key => $value) { if ($key != "sign") { - $str = $str.$key."=".$value."&"; + $str = $str.$key."=".str_replace("\\", "", $value)."&"; } - } + } return $data["sign"] == md5($str."key=".$sysKey); } -- Gitblit v1.8.0