|
@@ -34,7 +34,7 @@ class Until {
|
|
|
* @param array $data
|
|
|
* @param int $code
|
|
|
*/
|
|
|
- public static function outputSystemError(string $showMsg = '',string $systemErrorMsg = '', $data = [], $code = Enum::THROW_ERR_CODE): void {
|
|
|
+ public static function outputSystemError(string $showMsg = '',string $systemErrorMsg = '', $data = [], $code = Enum::THROW_ERR_CODE) {
|
|
|
$output = ['code' => $code, 'msg' => $showMsg, 'systemErrorMsg' => $systemErrorMsg, 'data' => $data];
|
|
|
header('Content-Type: application/json; charset=utf-8');
|
|
|
echo json_encode($output);
|