草庐IT

sendSignal

全部标签

php - 使用php模拟发送和接收数据://input

我有两条路线。Route::get('/receiveSignal','SignalController@receiveSignal');Route::get('/sendSignal','SignalController@sendSignal');我想模拟从sendSignal发送数据到接收信号路由。所以,在发送信号函数中我有这个:publicfunctionsendSignal(){$data=['spotid'=>'421156','name'=>'Test','desc'=>'somedesc','StartofDetection'=>'2018-01-1722:22:22']