Open zarte opened 4 years ago
swoft 多少版本的? cookies 里是怎样的数据,给个示例
@inhere 2.0.8 对应的cookie删掉了
public static function encode($value, int $options = 0, int $depth = 512): string
{
$json = json_encode($value, $options, $depth);
if (JSON_ERROR_NONE !== json_last_error()) {
var_dump($value);
throw new InvalidArgumentException('json_encode error: ' . json_last_error_msg());
}
return $json;
}
这里打印的值
这个异常如何捕获并通过websocket返回?