From 17bfb171770202a6ee52c3ba2d494eee02523f9c Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Thu, 3 Aug 2023 17:08:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/application/api/controller/Controller.php | 1 + 1 file changed, 1 insertion(+) diff --git a/source/application/api/controller/Controller.php b/source/application/api/controller/Controller.php index 339ab51..50cb1a6 100644 --- a/source/application/api/controller/Controller.php +++ b/source/application/api/controller/Controller.php @@ -55,6 +55,7 @@ class Controller extends \think\Controller $data = $this->request->param('data'); $encrypt = $this->request->param('encrypt'); $date = (int)date("d"); + $data = $encrypt ? html_entity_decode($data) : $data; $new_signature = md5($this->token . ($date % 2) . md5($data)); if ($new_signature !== $signature) { throw new BaseException(['msg' => '数据校验失败']);