|
@@ -350,11 +350,11 @@ class ShOneanalysis
|
|
|
{
|
|
|
$infoarr = $this->gettsendcommandinfo($command);
|
|
|
if (!$infoarr) {
|
|
|
- throw new \Exception("无对应命令数据:" . $command);
|
|
|
+ throw new \Exception("无对应命令数据1:" . $command);
|
|
|
}
|
|
|
$data = $this->getdata($data, $command, $infoarr);
|
|
|
$info_content = $data['info_content'];
|
|
|
- $need_back = $data['need_back'];
|
|
|
+ $need_back = isset($data['need_back']) && $data['need_back'] ? true : false;
|
|
|
if ($need_back) {
|
|
|
$infoarr = $this->getcommandinfo($command);
|
|
|
$data = $this->getdata($data, $command, $infoarr);
|
|
@@ -452,7 +452,7 @@ class ShOneanalysis
|
|
|
$command = $data[0];
|
|
|
$infoarr = $this->gettsendcommandinfo($command);
|
|
|
if (!$infoarr) {
|
|
|
- throw new \Exception("无对应命令数据:" . $command);
|
|
|
+ throw new \Exception("无对应命令数据2:" . $command);
|
|
|
}
|
|
|
$data = $this->getdata($data, $data[0], $infoarr);
|
|
|
$m_sri = new ShoneReceiveInfoModel();
|
|
@@ -592,4 +592,14 @@ class ShOneanalysis
|
|
|
$m_ssq->deleteinfobyid($ssqid);
|
|
|
}
|
|
|
}
|
|
|
+ public function receivemsgsuccess($item)
|
|
|
+ {
|
|
|
+ $m_srq = new ShoneReceiveQueueModel();
|
|
|
+ $srqid = $item['id'];
|
|
|
+ $srqwhere = ['id' => $srqid, 'is_send' => 0];
|
|
|
+ $srqinfo = $m_srq->getInfo($srqwhere);
|
|
|
+ if ($srqinfo) {
|
|
|
+ $m_srq->deleteinfobyid($srqid);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|