Commit 673ec07e authored by 冯超鹏's avatar 冯超鹏

tcp模块协议

parent 75ea2f15
Pipeline #208 canceled with stages
...@@ -65,7 +65,7 @@ class swooleMeTcp extends Command ...@@ -65,7 +65,7 @@ class swooleMeTcp extends Command
'max_connection' => 50, 'max_connection' => 50,
'daemonize'=>0,//守护进程 'daemonize'=>0,//守护进程
'backlog' => 128, 'backlog' => 128,
'heartbeat_check_interval' => 30, 'heartbeat_check_interval' => 300,
'heartbeat_idle_time' => 65, 'heartbeat_idle_time' => 65,
]); ]);
//监听连接进入事件 //监听连接进入事件
...@@ -89,7 +89,9 @@ class swooleMeTcp extends Command ...@@ -89,7 +89,9 @@ class swooleMeTcp extends Command
// } // }
$swooletcp = new ZehongTcpController(); $swooletcp = new ZehongTcpController();
// $swooletcp->swooletcplist($data); // $swooletcp->swooletcplist($data);
$serv->send($fd,$swooletcp->swooletcplist($data)); $todata = $swooletcp->swooletcplist($data);
Log::channel('slack')->info('返回值' . $todata);
$serv->send($fd,$todata);
}); });
//监听连接关闭事件 //监听连接关闭事件
......
...@@ -174,4 +174,10 @@ class AlarmOrderController extends Controller ...@@ -174,4 +174,10 @@ class AlarmOrderController extends Controller
return $this->jsonErrorData(500, '删除工单失败!'); return $this->jsonErrorData(500, '删除工单失败!');
} }
} }
//获取当前订单为第几步
public function orderin(Request $request){
$orderid = $request->input('oid');
$status = AlarmOrder::where('id','=',$orderid)->value('isorderone');
return $this->jsonSuccessData($status);
}
} }
...@@ -54,6 +54,7 @@ Route::group(['middleware' => 'auth:api'], function () { ...@@ -54,6 +54,7 @@ Route::group(['middleware' => 'auth:api'], function () {
Route::post('alarm_order/order_ok', 'AlarmOrderController@update'); // 修改工单 Route::post('alarm_order/order_ok', 'AlarmOrderController@update'); // 修改工单
Route::delete('alarm_order/{id}', 'AlarmOrderController@destroy'); // 删除工单 Route::delete('alarm_order/{id}', 'AlarmOrderController@destroy'); // 删除工单
Route::get('alarm_order/show', 'AlarmOrderController@show'); // 工单详情 Route::get('alarm_order/show', 'AlarmOrderController@show'); // 工单详情
Route::get('alarm_order/order_in', 'AlarmOrderController@orderin'); // 获取当前订单为第几步
}); });
//上传图片路由 //上传图片路由
......
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