|
|
@ -82,9 +82,9 @@ class Smartlock extends Base |
|
|
$param = array_merge($deviceInfo,$deviceStatus); |
|
|
$param = array_merge($deviceInfo,$deviceStatus); |
|
|
|
|
|
|
|
|
$pushRes = SmartLocks::TimingDataPush($param); |
|
|
$pushRes = SmartLocks::TimingDataPush($param); |
|
|
if (!$pushRes['status']) throw new \Exception($pushRes['msg']); |
|
|
#if (!$pushRes['status']) throw new \Exception($pushRes['msg']); |
|
|
|
|
|
|
|
|
return $this->jsonSuccess(); |
|
|
return $this->jsonSuccess('成功',$pushRes); |
|
|
} catch (\Exception $exception) { |
|
|
} catch (\Exception $exception) { |
|
|
return $this->jsonError($exception->getMessage()); |
|
|
return $this->jsonError($exception->getMessage()); |
|
|
} |
|
|
} |
|
|
|