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']);