@be-link/ecs-cli-nodejs 0.0.49 → 0.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ecs/http.js CHANGED
@@ -17,6 +17,8 @@ const axiosInstance = axios_1.default.create({
17
17
  (0, axios_retry_1.default)(axiosInstance, {
18
18
  retries: 1,
19
19
  retryCondition(error) {
20
+ const config = error.config || {};
21
+ console.info(`errorURL${config.url}`);
20
22
  console.info('errorMessage', error.message);
21
23
  console.info('errorResponse', error.response ? error.response.data : null);
22
24
  const isSocketHangUp = error.message.includes('socket hang up');
@@ -57,6 +59,12 @@ async function callApi(url, ...request) {
57
59
  console.error(`ECS 异常[${requestId}]: ${axiosError.message}`);
58
60
  console.info('响应信息', data.message);
59
61
  console.error('异常堆栈', JSON.stringify(error.stack));
62
+ // 添加详细的异常信息日志
63
+ console.info(`ECS异常请求URL[${requestId}]: ${url}`);
64
+ console.info(`ECS异常请求参数[${requestId}]:`, JSON.stringify(request));
65
+ console.info(`ECS异常响应状态[${requestId}]: ${response.status}`);
66
+ console.info(`ECS异常响应数据[${requestId}]:`, JSON.stringify(response.data));
67
+ console.info(`ECS异常响应头[${requestId}]:`, JSON.stringify(response.headers));
60
68
  throw new ErrorClass(data.message || 'ECS Error', response.status);
61
69
  }
62
70
  console.error(`ECS 未知异常[${requestId}]: ${axiosError.message}`, error.stack);
@@ -23,6 +23,7 @@ declare class VzanDataJobService extends BaseService implements Service.VzanData
23
23
  jobCheckSettleRefundData(): Promise<void>;
24
24
  jobGenerateComparisonBill(): Promise<void>;
25
25
  jobSyncVzanRefundData(): Promise<void>;
26
+ jobSyncVzanUserDetail(): Promise<void>;
26
27
  }
27
28
  declare const vzanDataJobService: VzanDataJobService;
28
29
  export default vzanDataJobService;
@@ -64,6 +64,9 @@ class VzanDataJobService extends service_1.default {
64
64
  jobSyncVzanRefundData() {
65
65
  return (0, http_1.callApi)(this.getApiUrl(this.jobSyncVzanRefundData));
66
66
  }
67
+ jobSyncVzanUserDetail() {
68
+ return (0, http_1.callApi)(this.getApiUrl(this.jobSyncVzanUserDetail));
69
+ }
67
70
  }
68
71
  const vzanDataJobService = new VzanDataJobService();
69
72
  exports.default = vzanDataJobService;
@@ -37,5 +37,7 @@ export declare namespace Service {
37
37
  jobGenerateComparisonBill(): Promise<void>;
38
38
  /** 同步退款数据 */
39
39
  jobSyncVzanRefundData(): Promise<void>;
40
+ /** 同步用户详情 */
41
+ jobSyncVzanUserDetail(): Promise<void>;
40
42
  }
41
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecs-cli-nodejs",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "description": "ECS服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "repository": {