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

no message

parent 5dfb865c
Pipeline #94 failed with stages
...@@ -114,7 +114,7 @@ class SwooleCommandMeTcpController extends Controller ...@@ -114,7 +114,7 @@ class SwooleCommandMeTcpController extends Controller
if ($type['endtime'] != '' && $type['status'] == 2 && $davicedata[1] != 1){ if ($type['endtime'] != '' && $type['status'] == 2 && $davicedata[1] != 1){
$up = DB::table('reportpolice') $up = DB::table('reportpolice')
->where('devicenumber', '=', $davicedata[0]) ->where('devicenumber', '=', $davicedata[0])
->update(['endtime'=>'', 'police' => 1,'status' => 1,'policestatus'=> $davicedata[1],'concentration' => $davicedata[2]]); ->update(['endtime'=>'', 'police' => 1,'starttime'=>time(),'status' => 1,'policestatus'=> $davicedata[1],'concentration' => $davicedata[2]]);
} }
if($type['status'] == 1 && $type['endtime'] == '' && $davicedata[1] == 1){ if($type['status'] == 1 && $type['endtime'] == '' && $davicedata[1] == 1){
$up = DB::table('reportpolice') $up = DB::table('reportpolice')
...@@ -126,7 +126,7 @@ class SwooleCommandMeTcpController extends Controller ...@@ -126,7 +126,7 @@ class SwooleCommandMeTcpController extends Controller
if ($davicedata[1] != 1 && $type['endtime'] == '') { if ($davicedata[1] != 1 && $type['endtime'] == '') {
$up = DB::table('reportpolice') $up = DB::table('reportpolice')
->where('devicenumber', '=', $davicedata[0]) ->where('devicenumber', '=', $davicedata[0])
->update(['concentration' => $davicedata[2], 'policestatus' => $davicedata[1], 'police' => 1, 'status' => 1]); ->update(['concentration' => $davicedata[2], 'policestatus' => $davicedata[1], 'police' => 1, 'status' => 1,'starttime'=>time()]);
} }
} else { } else {
if ($davicedata[1] != 1) { if ($davicedata[1] != 1) {
......
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