From 6cd412740d7a1c718aa30b55e8999b97fe603565 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Mon, 4 Dec 2023 16:37:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E9=99=90=E5=88=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Smartlock.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/api/controller/Smartlock.php b/application/api/controller/Smartlock.php index fed6c55..a22094f 100644 --- a/application/api/controller/Smartlock.php +++ b/application/api/controller/Smartlock.php @@ -22,7 +22,7 @@ class Smartlock extends Base $json = $request->getContent(); $param = json_decode($json, true); - if (empty($accessToken)) throw new \Exception('AccessToken参数,不能为空'); + if (empty($accessToken)) throw new \Exception('Header参数:AccessToken,不能为空'); if (empty($param['deviceSerial'])) throw new \Exception('deviceSerial参数,不能为空'); $curlData = YingShiSdk::DeviceStatus($accessToken,$param['deviceSerial']); @@ -49,7 +49,7 @@ class Smartlock extends Base $json = $request->getContent(); $param = json_decode($json, true); - if (empty($accessToken)) throw new \Exception('AccessToken参数,不能为空'); + if (empty($accessToken)) throw new \Exception('Header参数:AccessToken,不能为空'); if (empty($param['deviceSerial'])) throw new \Exception('deviceSerial参数,不能为空'); $curlData = YingShiSdk::DeviceInfo($accessToken,$param['deviceSerial']);