post()->goCheck('deviceList'); $result = DeviceLogic::getDeviceLists($params); if ($result === false) { return $this->fail(DeviceLogic::getError()); } return $this->success('', $result, 1, 1); } /** * @return void * 空开控制 */ public function deviceOff_On(){ $params = (new DeviceValidate())->post()->goCheck('deviceOff_On'); $result = DeviceLogic::deviceOff_On($params); if ($result === false) { return $this->fail(DeviceLogic::getError()); } return $this->success('', $result, 1, 1); } /** * @return void * 门锁控制 */ public function lockOff_On(){ $params = (new DeviceValidate())->post()->goCheck('lockOff_On'); $result = DeviceLogic::lockOff_On($params); if ($result === false) { return $this->fail(DeviceLogic::getError()); } return $this->success('', $result, 1, 1); } }