Gateway::getAllClientIdList() 在服务异常时会报错

tqjs

接口返回关键信息如下:
{
"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": "::"
},

168 1 0
1个回答

Gin

try catch

  • 暂无评论
×
🔝