Commit cbb72e97 authored by 冯超鹏's avatar 冯超鹏

Merge branch 'develos'

parents 05525a85 6c421d6a
Pipeline #200 failed with stages
...@@ -42,9 +42,12 @@ class ZehongTcpController extends Controller ...@@ -42,9 +42,12 @@ class ZehongTcpController extends Controller
if($totcp['nd'] < 999 ){ if($totcp['nd'] < 999 ){
$totcp['nd'] = '0' . $totcp['nd']; $totcp['nd'] = '0' . $totcp['nd'];
} }
if($totcp['nd'] < 99 ){
$totcp['nd'] = '0' . $totcp['nd'];
}
$totcpdata = $totcp['devicenum'] .$totcp['devicepolice'] .$totcp['nd'] . $totcp['shutoff_status'] . $devicechongqi . $devicezijian; $totcpdata = $totcp['devicenum'] .$totcp['devicepolice'] .$totcp['nd'] . $totcp['shutoff_status'] . $devicechongqi . $devicezijian;
$crcdata = $this->getPrc($totcpdata); $crcdata = $this->getPrc($totcpdata);
return $totcpdata . $crcdata; return $totcpdata .$crcdata ;
} }
} else { } else {
return "数据格式错误"; return "数据格式错误";
...@@ -97,7 +100,7 @@ class ZehongTcpController extends Controller ...@@ -97,7 +100,7 @@ class ZehongTcpController extends Controller
if ($todata){ if ($todata){
return json_encode($todata); return json_encode($todata);
}else{ }else{
return "暂无设备"; return json_encode("暂无设备");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment