识别返回请求的是哪台服务器

This commit is contained in:
2025-01-04 09:02:22 +08:00
parent 0eb20df38c
commit 2852aeec1b
2 changed files with 2 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ class JsonResponseFormatter extends \yii\web\JsonResponseFormatter
private static $param = [
'param' => [],
'result' => [],
'url' => '',
'url' => ''
];
private $defaultErrorCode = -1;
@@ -34,6 +34,7 @@ class JsonResponseFormatter extends \yii\web\JsonResponseFormatter
$result['data'] = $data;
$result['msg'] = $msg;
$result['errcode'] = $errno;
$result['ecs'] = env('ECS');
return $result;
}