作者 何书鹏

您有新的订单,请注意查收

... ... @@ -96,11 +96,11 @@ class Notify extends Api
// 给后台发送新订单提醒
$client = new Client();
$domain = config('socketio.domain');
$port = config('socketio.port');
$response = $client->request('POST', $domain.":{$port}/", [
$http_port = config('socketio.http_port');
$response = $client->request('POST', $domain.":{$http_port}/", [
'form_params' => [
'type' => 'publish',
'content' => '这个是推送的测试数据',
'content' => '您有新的订单,请注意查收',
'to' => '',
]
]);
... ...
... ... @@ -5,7 +5,11 @@ return [
*/
'domain' => 'http://temporaryfood.n.broing.cn',
/**
* 端口
* socket端口
*/
'port' => 2021,
'socket_port' => 2120,
/**
* http端口
*/
'http_port' => 2121,
];
\ No newline at end of file
... ...