接口返回关键信息如下:
{
"msg": "foreach() argument must be of type array|object, bool given",
"code": 500,
"data": {
"code": 0,
"message": "foreach() argument must be of type array|object, bool given",
"file": "/home/www/vendor/workerman/gatewayclient/Gateway.php",
"line": 374,
"trace": [
{
"file": "/home/www/vendor/workerman/gatewayclient/Gateway.php",
"line": 374,
"function": "appError",
"class": "think\initializer\Error",
"type": "->"
},
{
"file": "/home/www/vendor/workerman/gatewayclient/Gateway.php",
"line": 359,
"function": "formatClientIdFromGatewayBuffer",
"class": "GatewayClient\Gateway",
"type": "::"
},
try catch