提交 6d185497 编写于 作者: G gongfuxiang

系统出错输出json新增头信息

上级 a190548c
......@@ -89,6 +89,9 @@ class ExceptionHandle extends Handle
$msg = '服务器错误';
}
}
// 结束并设置响应头
header('Content-Type: application/json; charset=utf-8');
exit(json_encode(DataReturn($msg, $code)));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册