|
@@ -146,18 +146,27 @@ class ShouhuanCommand
|
|
|
{
|
|
|
$command = $data['command'];
|
|
|
$infoarr = $this->getsendcommandinfo($command);
|
|
|
+ $commandxy = "3G";
|
|
|
if (!$infoarr) {
|
|
|
// Log::write("无对应命令数据1:" . $command, 'shouhuan');
|
|
|
// Log::write($data, 'shouhuan');
|
|
|
- return false;
|
|
|
+ //return false;
|
|
|
+ $msgdata = [
|
|
|
+ 0 => $commandxy,
|
|
|
+ 'device_id_code' => $device_id_code,
|
|
|
+ 'len' => str_pad(strtoupper(dechex(mb_strlen($command))), 4, "0", STR_PAD_LEFT),
|
|
|
+ 'content' => $command,
|
|
|
+ ];
|
|
|
+ $msg = '[' . implode('*', $msgdata) . ']';
|
|
|
+ return $msg;
|
|
|
}
|
|
|
$content_arr = $data['content_arr'];
|
|
|
$config = $infoarr;
|
|
|
-
|
|
|
$m_ssl = new ShsendlistModel();
|
|
|
- $commandxy = "3G";
|
|
|
+
|
|
|
if ('back' == $config['kind']) {
|
|
|
- $content = $infoarr['command'];
|
|
|
+ $content = $config['content'];
|
|
|
+ $content = $content['command'];
|
|
|
$weight = $this->getsendweight($command);
|
|
|
$msgdata = [
|
|
|
0 => $commandxy,
|
|
@@ -521,6 +530,12 @@ class ShouhuanCommand
|
|
|
],
|
|
|
'kind' => 'back',
|
|
|
],
|
|
|
+ 'UD2' => [
|
|
|
+ 'content' => [
|
|
|
+ 'command' => 'UD2',
|
|
|
+ ],
|
|
|
+ 'kind' => 'back',
|
|
|
+ ],
|
|
|
];
|
|
|
if (!isset($data[$command])) {
|
|
|
return false;
|