require_once './GatewayClient/Gateway.php';
use GatewayClient\Gateway;
Gateway::$registerAddress = '172.18.117.95:1238';
$client_id=$_GET;
$arr=array(
'box'=>$_GET,
'oid'=>$_GET,
);
$data=json_encode($arr);
Gateway::sendToClient($client_id, $data);
看起来是这个url调用了两次哦
打日志看下吧,类似
file_put_contents('xxx.log', "get\r\n", FILE_APPEND);
Gateway::sendToClient($client_id, $data);
大哥怎么解决的