decode($body); $this->cacheLog($data['box_no'], $this->msg_id, [ 'SERVER' => $data['server_ip'] . ':' . $data['server_port'] ]); return $this->response(); } /** * 解析装载的状态消息 * @param $body * @return array * User: Mead */ private function decode($body) { $top34Data = $this->decodeWeiKeMuTop34($body); $i = 34; // $port = self::stitching($body, $i, 2); // i=34 $i += 2; $url = self::stitching($body, $i); // i=34 return array_merge($top34Data, [ 'server_port' => hexdec($port), 'server_ip' => hex2bin($url) ]); } /** * 状态响应 * @param $login_type * @return array * User: Mead */ public function response($login_type = '00') { $body = [ '5b', '0000' ]; return $body; } }