904118851 3 ヶ月 前
コミット
868f3614cc
6 ファイル変更1196 行追加11 行削除
  1. BIN
      dump.rdb
  2. 585 0
      logs/combined.log
  3. 585 0
      logs/out.log
  4. 3 5
      src/api/fq/fq_search_book.js
  5. 1 1
      src/api/yw/yw_search_book.js
  6. 22 5
      tg_factory_main.js

BIN
dump.rdb


+ 585 - 0
logs/combined.log

@@ -348,7 +348,592 @@
 2025-05-02T11:33:26:   total_price: 0,
 2025-05-02T11:33:26:   word_count: 2223760
 2025-05-02T11:33:26: }
+<<<<<<< HEAD
 2025-05-02T11:51:25: 
 2025-05-02T11:51:25: > heiyan@1.0.0 start
 2025-05-02T11:51:25: > node tg_factory_main.js
 2025-05-02T11:51:25: 
+=======
+2025-05-02T15:55:11: 
+2025-05-02T15:55:11: > heiyan@1.0.0 start
+2025-05-02T15:55:11: > node tg_factory_main.js
+2025-05-02T15:55:11: 
+2025-05-02T15:55:13: Connected to Redis
+2025-05-02T15:55:14: response: {
+2025-05-02T15:55:14:   status: 200,
+2025-05-02T15:55:14:   statusText: 'OK',
+2025-05-02T15:55:14:   headers: Object [AxiosHeaders] {
+2025-05-02T15:55:14:     server: 'BLB/23.08.4.1',
+2025-05-02T15:55:14:     date: 'Fri, 02 May 2025 07:55:14 GMT',
+2025-05-02T15:55:14:     'content-type': 'text/plain; charset=utf-8',
+2025-05-02T15:55:14:     'content-length': '81',
+2025-05-02T15:55:14:     connection: 'keep-alive',
+2025-05-02T15:55:14:     'x-dayu-backend-response': '0.002',
+2025-05-02T15:55:14:     vary: 'Accept-Encoding',
+2025-05-02T15:55:14:     'referrer-policy': 'no-referrer-when-downgrade',
+2025-05-02T15:55:14:     'x-secng-response': '0.003000020980835',
+2025-05-02T15:55:14:     'set-cookie': [
+2025-05-02T15:55:14:       '_xsrf=sJlFtdLUpS5DkU27ylEzqj1Q3JaC3Ebt; path=/; domain=zhihu.com; expires=Tue, 19-Oct-27 07:55:14 GMT',
+2025-05-02T15:55:14:       'BEC=e9bdbc10d489caddf435785a710b7029;Path=/;Max-Age=3600'
+2025-05-02T15:55:14:     ]
+2025-05-02T15:55:14:   },
+2025-05-02T15:55:14:   config: {
+2025-05-02T15:55:14:     transitional: {
+2025-05-02T15:55:14:       silentJSONParsing: true,
+2025-05-02T15:55:14:       forcedJSONParsing: true,
+2025-05-02T15:55:14:       clarifyTimeoutError: false
+2025-05-02T15:55:14:     },
+2025-05-02T15:55:14:     adapter: [ 'xhr', 'http', 'fetch' ],
+2025-05-02T15:55:14:     transformRequest: [ [Function: transformRequest] ],
+2025-05-02T15:55:14:     transformResponse: [ [Function: transformResponse] ],
+2025-05-02T15:55:14:     timeout: 30000,
+2025-05-02T15:55:14:     xsrfCookieName: 'XSRF-TOKEN',
+2025-05-02T15:55:14:     xsrfHeaderName: 'X-XSRF-TOKEN',
+2025-05-02T15:55:14:     maxContentLength: -1,
+2025-05-02T15:55:14:     maxBodyLength: -1,
+2025-05-02T15:55:14:     env: { FormData: [Function], Blob: [class Blob] },
+2025-05-02T15:55:14:     validateStatus: [Function: validateStatus],
+2025-05-02T15:55:14:     headers: Object [AxiosHeaders] {
+2025-05-02T15:55:14:       Accept: 'application/json, text/plain, */*',
+2025-05-02T15:55:14:       'Content-Type': 'application/x-www-form-urlencoded',
+2025-05-02T15:55:14:       'User-Agent': 'axios/1.7.7',
+2025-05-02T15:55:14:       'Content-Length': '311',
+2025-05-02T15:55:14:       'Accept-Encoding': 'gzip, compress, deflate, br'
+2025-05-02T15:55:14:     },
+2025-05-02T15:55:14:     httpAgent: Agent {
+2025-05-02T15:55:14:       _events: [Object: null prototype],
+2025-05-02T15:55:14:       _eventsCount: 2,
+2025-05-02T15:55:14:       _maxListeners: undefined,
+2025-05-02T15:55:14:       defaultPort: 80,
+2025-05-02T15:55:14:       protocol: 'http:',
+2025-05-02T15:55:14:       options: [Object: null prototype],
+2025-05-02T15:55:14:       requests: [Object: null prototype] {},
+2025-05-02T15:55:14:       sockets: [Object: null prototype] {},
+2025-05-02T15:55:14:       freeSockets: [Object: null prototype] {},
+2025-05-02T15:55:14:       keepAliveMsecs: 1000,
+2025-05-02T15:55:14:       keepAlive: true,
+2025-05-02T15:55:14:       maxSockets: 5,
+2025-05-02T15:55:14:       maxFreeSockets: 2,
+2025-05-02T15:55:14:       scheduling: 'lifo',
+2025-05-02T15:55:14:       maxTotalSockets: Infinity,
+2025-05-02T15:55:14:       totalSocketCount: 0,
+2025-05-02T15:55:14:       [Symbol(shapeMode)]: false,
+2025-05-02T15:55:14:       [Symbol(kCapture)]: false
+2025-05-02T15:55:14:     },
+2025-05-02T15:55:14:     method: 'post',
+2025-05-02T15:55:14:     url: 'https://open.zhihu.com/openapi/km-agent/v1/new-ad-link',
+2025-05-02T15:55:14:     data: '{"timestamp":"1746172513","app_id":"7499289958303842314","data":{"member_token":"56-14-35-46-44","work_id":"1894456139606906802","media_channel_type":5,"ad_link_name":"测试链接","app_id":"tt2ffb5946b0cb808001","callback_type":0,"callback_rule_id":"1857508752934199296","payment_template_id":"2618","num":1}}'
+2025-05-02T15:55:14:   },
+2025-05-02T15:55:14:   request: <ref *1> ClientRequest {
+2025-05-02T15:55:14:     _events: [Object: null prototype] {
+2025-05-02T15:55:14:       abort: [Function (anonymous)],
+2025-05-02T15:55:14:       aborted: [Function (anonymous)],
+2025-05-02T15:55:14:       connect: [Function (anonymous)],
+2025-05-02T15:55:14:       error: [Function (anonymous)],
+2025-05-02T15:55:14:       socket: [Function (anonymous)],
+2025-05-02T15:55:14:       timeout: [Function (anonymous)],
+2025-05-02T15:55:14:       finish: [Function: requestOnFinish]
+2025-05-02T15:55:14:     },
+2025-05-02T15:55:14:     _eventsCount: 7,
+2025-05-02T15:55:14:     _maxListeners: undefined,
+2025-05-02T15:55:14:     outputData: [],
+2025-05-02T15:55:14:     outputSize: 0,
+2025-05-02T15:55:14:     writable: true,
+2025-05-02T15:55:14:     destroyed: true,
+2025-05-02T15:55:14:     _last: false,
+2025-05-02T15:55:14:     chunkedEncoding: false,
+2025-05-02T15:55:14:     shouldKeepAlive: true,
+2025-05-02T15:55:14:     maxRequestsOnConnectionReached: false,
+2025-05-02T15:55:14:     _defaultKeepAlive: true,
+2025-05-02T15:55:14:     useChunkedEncodingByDefault: true,
+2025-05-02T15:55:14:     sendDate: false,
+2025-05-02T15:55:14:     _removedConnection: false,
+2025-05-02T15:55:14:     _removedContLen: false,
+2025-05-02T15:55:14:     _removedTE: false,
+2025-05-02T15:55:14:     strictContentLength: false,
+2025-05-02T15:55:14:     _contentLength: '311',
+2025-05-02T15:55:14:     _hasBody: true,
+2025-05-02T15:55:14:     _trailer: '',
+2025-05-02T15:55:14:     finished: true,
+2025-05-02T15:55:14:     _headerSent: true,
+2025-05-02T15:55:14:     _closed: true,
+2025-05-02T15:55:14:     socket: TLSSocket {
+2025-05-02T15:55:14:       _tlsOptions: [Object],
+2025-05-02T15:55:14:       _secureEstablished: true,
+2025-05-02T15:55:14:       _securePending: false,
+2025-05-02T15:55:14:       _newSessionPending: false,
+2025-05-02T15:55:14:       _controlReleased: true,
+2025-05-02T15:55:14:       secureConnecting: false,
+2025-05-02T15:55:14:       _SNICallback: null,
+2025-05-02T15:55:14:       servername: 'open.zhihu.com',
+2025-05-02T15:55:14:       alpnProtocol: false,
+2025-05-02T15:55:14:       authorized: true,
+2025-05-02T15:55:14:       authorizationError: null,
+2025-05-02T15:55:14:       encrypted: true,
+2025-05-02T15:55:14:       _events: [Object: null prototype],
+2025-05-02T15:55:14:       _eventsCount: 9,
+2025-05-02T15:55:14:       connecting: false,
+2025-05-02T15:55:14:       _hadError: false,
+2025-05-02T15:55:14:       _parent: null,
+2025-05-02T15:55:14:       _host: 'open.zhihu.com',
+2025-05-02T15:55:14:       _closeAfterHandlingError: false,
+2025-05-02T15:55:14:       _readableState: [ReadableState],
+2025-05-02T15:55:14:       _writableState: [WritableState],
+2025-05-02T15:55:14:       allowHalfOpen: false,
+2025-05-02T15:55:14:       _maxListeners: undefined,
+2025-05-02T15:55:14:       _sockname: null,
+2025-05-02T15:55:14:       _pendingData: null,
+2025-05-02T15:55:14:       _pendingEncoding: '',
+2025-05-02T15:55:14:       server: undefined,
+2025-05-02T15:55:14:       _server: null,
+2025-05-02T15:55:14:       ssl: [TLSWrap],
+2025-05-02T15:55:14:       _requestCert: true,
+2025-05-02T15:55:14:       _rejectUnauthorized: true,
+2025-05-02T15:55:14:       timeout: 5000,
+2025-05-02T15:55:14:       parser: null,
+2025-05-02T15:55:14:       _httpMessage: null,
+2025-05-02T15:55:14:       autoSelectFamilyAttemptedAddresses: [Array],
+2025-05-02T15:55:14:       [Symbol(alpncallback)]: null,
+2025-05-02T15:55:14:       [Symbol(res)]: [TLSWrap],
+2025-05-02T15:55:14:       [Symbol(verified)]: true,
+2025-05-02T15:55:14:       [Symbol(pendingSession)]: null,
+2025-05-02T15:55:14:       [Symbol(async_id_symbol)]: -1,
+2025-05-02T15:55:14:       [Symbol(kHandle)]: [TLSWrap],
+2025-05-02T15:55:14:       [Symbol(lastWriteQueueSize)]: 0,
+2025-05-02T15:55:14:       [Symbol(timeout)]: Timeout {
+2025-05-02T15:55:14:         _idleTimeout: 5000,
+2025-05-02T15:55:14:         _idlePrev: [TimersList],
+2025-05-02T15:55:14:         _idleNext: [TimersList],
+2025-05-02T15:55:14:         _idleStart: 2904,
+2025-05-02T15:55:14:         _onTimeout: [Function: bound ],
+2025-05-02T15:55:14:         _timerArgs: undefined,
+2025-05-02T15:55:14:         _repeat: null,
+2025-05-02T15:55:14:         _destroyed: false,
+2025-05-02T15:55:14:         [Symbol(refed)]: false,
+2025-05-02T15:55:14:         [Symbol(kHasPrimitive)]: false,
+2025-05-02T15:55:14:         [Symbol(asyncId)]: 42,
+2025-05-02T15:55:14:         [Symbol(triggerId)]: 40
+2025-05-02T15:55:14:       },
+2025-05-02T15:55:14:       [Symbol(kBuffer)]: null,
+2025-05-02T15:55:14:       [Symbol(kBufferCb)]: null,
+2025-05-02T15:55:14:       [Symbol(kBufferGen)]: null,
+2025-05-02T15:55:14:       [Symbol(shapeMode)]: true,
+2025-05-02T15:55:14:       [Symbol(kCapture)]: false,
+2025-05-02T15:55:14:       [Symbol(kSetNoDelay)]: false,
+2025-05-02T15:55:14:       [Symbol(kSetKeepAlive)]: true,
+2025-05-02T15:55:14:       [Symbol(kSetKeepAliveInitialDelay)]: 1,
+2025-05-02T15:55:14:       [Symbol(kBytesRead)]: 0,
+2025-05-02T15:55:14:       [Symbol(kBytesWritten)]: 0,
+2025-05-02T15:55:14:       [Symbol(connect-options)]: [Object]
+2025-05-02T15:55:14:     },
+2025-05-02T15:55:14:     _header: 'POST /openapi/km-agent/v1/new-ad-link HTTP/1.1\r\n' +
+2025-05-02T15:55:14:       'Accept: application/json, text/plain, */*\r\n' +
+2025-05-02T15:55:14:       'Content-Type: application/x-www-form-urlencoded\r\n' +
+2025-05-02T15:55:14:       'User-Agent: axios/1.7.7\r\n' +
+2025-05-02T15:55:14:       'Content-Length: 311\r\n' +
+2025-05-02T15:55:14:       'Accept-Encoding: gzip, compress, deflate, br\r\n' +
+2025-05-02T15:55:14:       'Host: open.zhihu.com\r\n' +
+2025-05-02T15:55:14:       'Connection: keep-alive\r\n' +
+2025-05-02T15:55:14:       '\r\n',
+2025-05-02T15:55:14:     _keepAliveTimeout: 0,
+2025-05-02T15:55:14:     _onPendingData: [Function: nop],
+2025-05-02T15:55:14:     agent: Agent {
+2025-05-02T15:55:14:       _events: [Object: null prototype],
+2025-05-02T15:55:14:       _eventsCount: 2,
+2025-05-02T15:55:14:       _maxListeners: undefined,
+2025-05-02T15:55:14:       defaultPort: 443,
+2025-05-02T15:55:14:       protocol: 'https:',
+2025-05-02T15:55:14:       options: [Object: null prototype],
+2025-05-02T15:55:14:       requests: [Object: null prototype] {},
+2025-05-02T15:55:14:       sockets: [Object: null prototype] {},
+2025-05-02T15:55:14:       freeSockets: [Object: null prototype],
+2025-05-02T15:55:14:       keepAliveMsecs: 1000,
+2025-05-02T15:55:14:       keepAlive: true,
+2025-05-02T15:55:14:       maxSockets: Infinity,
+2025-05-02T15:55:14:       maxFreeSockets: 256,
+2025-05-02T15:55:14:       scheduling: 'lifo',
+2025-05-02T15:55:14:       maxTotalSockets: Infinity,
+2025-05-02T15:55:14:       totalSocketCount: 1,
+2025-05-02T15:55:14:       maxCachedSessions: 100,
+2025-05-02T15:55:14:       _sessionCache: [Object],
+2025-05-02T15:55:14:       [Symbol(shapeMode)]: false,
+2025-05-02T15:55:14:       [Symbol(kCapture)]: false
+2025-05-02T15:55:14:     },
+2025-05-02T15:55:14:     socketPath: undefined,
+2025-05-02T15:55:14:     method: 'POST',
+2025-05-02T15:55:14:     maxHeaderSize: undefined,
+2025-05-02T15:55:14:     insecureHTTPParser: undefined,
+2025-05-02T15:55:14:     joinDuplicateHeaders: undefined,
+2025-05-02T15:55:14:     path: '/openapi/km-agent/v1/new-ad-link',
+2025-05-02T15:55:14:     _ended: true,
+2025-05-02T15:55:14:     res: IncomingMessage {
+2025-05-02T15:55:14:       _events: [Object],
+2025-05-02T15:55:14:       _readableState: [ReadableState],
+2025-05-02T15:55:14:       _maxListeners: undefined,
+2025-05-02T15:55:14:       socket: null,
+2025-05-02T15:55:14:       httpVersionMajor: 1,
+2025-05-02T15:55:14:       httpVersionMinor: 1,
+2025-05-02T15:55:14:       httpVersion: '1.1',
+2025-05-02T15:55:14:       complete: true,
+2025-05-02T15:55:14:       rawHeaders: [Array],
+2025-05-02T15:55:14:       rawTrailers: [],
+2025-05-02T15:55:14:       joinDuplicateHeaders: undefined,
+2025-05-02T15:55:14:       aborted: false,
+2025-05-02T15:55:14:       upgrade: false,
+2025-05-02T15:55:14:       url: '',
+2025-05-02T15:55:14:       method: null,
+2025-05-02T15:55:14:       statusCode: 200,
+2025-05-02T15:55:14:       statusMessage: 'OK',
+2025-05-02T15:55:14:       client: [TLSSocket],
+2025-05-02T15:55:14:       _consuming: false,
+2025-05-02T15:55:14:       _dumped: false,
+2025-05-02T15:55:14:       req: [Circular *1],
+2025-05-02T15:55:14:       _eventsCount: 4,
+2025-05-02T15:55:14:       responseUrl: 'https://open.zhihu.com/openapi/km-agent/v1/new-ad-link',
+2025-05-02T15:55:14:       redirects: [],
+2025-05-02T15:55:14:       [Symbol(shapeMode)]: true,
+2025-05-02T15:55:14:       [Symbol(kCapture)]: false,
+2025-05-02T15:55:14:       [Symbol(kHeaders)]: [Object],
+2025-05-02T15:55:14:       [Symbol(kHeadersCount)]: 22,
+2025-05-02T15:55:14:       [Symbol(kTrailers)]: null,
+2025-05-02T15:55:14:       [Symbol(kTrailersCount)]: 0
+2025-05-02T15:55:14:     },
+2025-05-02T15:55:14:     aborted: false,
+2025-05-02T15:55:14:     timeoutCb: null,
+2025-05-02T15:55:14:     upgradeOrConnect: false,
+2025-05-02T15:55:14:     parser: null,
+2025-05-02T15:55:14:     maxHeadersCount: null,
+2025-05-02T15:55:14:     reusedSocket: false,
+2025-05-02T15:55:14:     host: 'open.zhihu.com',
+2025-05-02T15:55:14:     protocol: 'https:',
+2025-05-02T15:55:14:     _redirectable: Writable {
+2025-05-02T15:55:14:       _events: [Object],
+2025-05-02T15:55:14:       _writableState: [WritableState],
+2025-05-02T15:55:14:       _maxListeners: undefined,
+2025-05-02T15:55:14:       _options: [Object],
+2025-05-02T15:55:14:       _ended: true,
+2025-05-02T15:55:14:       _ending: true,
+2025-05-02T15:55:14:       _redirectCount: 0,
+2025-05-02T15:55:14:       _redirects: [],
+2025-05-02T15:55:14:       _requestBodyLength: 311,
+2025-05-02T15:55:14:       _requestBodyBuffers: [],
+2025-05-02T15:55:14:       _eventsCount: 3,
+2025-05-02T15:55:14:       _onNativeResponse: [Function (anonymous)],
+2025-05-02T15:55:14:       _currentRequest: [Circular *1],
+2025-05-02T15:55:14:       _currentUrl: 'https://open.zhihu.com/openapi/km-agent/v1/new-ad-link',
+2025-05-02T15:55:14:       _timeout: null,
+2025-05-02T15:55:14:       [Symbol(shapeMode)]: true,
+2025-05-02T15:55:14:       [Symbol(kCapture)]: false
+2025-05-02T15:55:14:     },
+2025-05-02T15:55:14:     [Symbol(shapeMode)]: false,
+2025-05-02T15:55:14:     [Symbol(kCapture)]: false,
+2025-05-02T15:55:14:     [Symbol(kBytesWritten)]: 0,
+2025-05-02T15:55:14:     [Symbol(kNeedDrain)]: false,
+2025-05-02T15:55:14:     [Symbol(corked)]: 0,
+2025-05-02T15:55:14:     [Symbol(kOutHeaders)]: [Object: null prototype] {
+2025-05-02T15:55:14:       accept: [Array],
+2025-05-02T15:55:14:       'content-type': [Array],
+2025-05-02T15:55:14:       'user-agent': [Array],
+2025-05-02T15:55:14:       'content-length': [Array],
+2025-05-02T15:55:14:       'accept-encoding': [Array],
+2025-05-02T15:55:14:       host: [Array]
+2025-05-02T15:55:14:     },
+2025-05-02T15:55:14:     [Symbol(errored)]: null,
+2025-05-02T15:55:14:     [Symbol(kHighWaterMark)]: 16384,
+2025-05-02T15:55:14:     [Symbol(kRejectNonStandardBodyWrites)]: false,
+2025-05-02T15:55:14:     [Symbol(kUniqueHeaders)]: null
+2025-05-02T15:55:14:   },
+2025-05-02T15:55:14:   data: { retCode: 100002, retMsg: '非法的终端(签名校验错误)', data: null }
+2025-05-02T15:55:14: }
+2025-05-02T15:57:10: 
+2025-05-02T15:57:10: > heiyan@1.0.0 start
+2025-05-02T15:57:10: > node tg_factory_main.js
+2025-05-02T15:57:10: 
+2025-05-02T15:57:12: Connected to Redis
+2025-05-02T15:57:12: response: {
+2025-05-02T15:57:12:   status: 200,
+2025-05-02T15:57:12:   statusText: 'OK',
+2025-05-02T15:57:12:   headers: Object [AxiosHeaders] {
+2025-05-02T15:57:12:     server: 'BLB/23.08.4.1',
+2025-05-02T15:57:12:     date: 'Fri, 02 May 2025 07:57:12 GMT',
+2025-05-02T15:57:12:     'content-type': 'text/plain; charset=utf-8',
+2025-05-02T15:57:12:     'content-length': '81',
+2025-05-02T15:57:12:     connection: 'keep-alive',
+2025-05-02T15:57:12:     'x-dayu-backend-response': '0.001',
+2025-05-02T15:57:12:     vary: 'Accept-Encoding',
+2025-05-02T15:57:12:     'referrer-policy': 'no-referrer-when-downgrade',
+2025-05-02T15:57:12:     'x-secng-response': '0.003000020980835',
+2025-05-02T15:57:12:     'set-cookie': [
+2025-05-02T15:57:12:       '_xsrf=IRYVqKsmw0dRBMdUJajzclfRt9raTW1D; path=/; domain=zhihu.com; expires=Tue, 19-Oct-27 07:57:12 GMT',
+2025-05-02T15:57:12:       'BEC=7729bbd832cc7c6d885273675bb3dc5b;Path=/;Max-Age=3600'
+2025-05-02T15:57:12:     ]
+2025-05-02T15:57:12:   },
+2025-05-02T15:57:12:   config: {
+2025-05-02T15:57:12:     transitional: {
+2025-05-02T15:57:12:       silentJSONParsing: true,
+2025-05-02T15:57:12:       forcedJSONParsing: true,
+2025-05-02T15:57:12:       clarifyTimeoutError: false
+2025-05-02T15:57:12:     },
+2025-05-02T15:57:12:     adapter: [ 'xhr', 'http', 'fetch' ],
+2025-05-02T15:57:12:     transformRequest: [ [Function: transformRequest] ],
+2025-05-02T15:57:12:     transformResponse: [ [Function: transformResponse] ],
+2025-05-02T15:57:12:     timeout: 30000,
+2025-05-02T15:57:12:     xsrfCookieName: 'XSRF-TOKEN',
+2025-05-02T15:57:12:     xsrfHeaderName: 'X-XSRF-TOKEN',
+2025-05-02T15:57:12:     maxContentLength: -1,
+2025-05-02T15:57:12:     maxBodyLength: -1,
+2025-05-02T15:57:12:     env: { FormData: [Function], Blob: [class Blob] },
+2025-05-02T15:57:12:     validateStatus: [Function: validateStatus],
+2025-05-02T15:57:12:     headers: Object [AxiosHeaders] {
+2025-05-02T15:57:12:       Accept: 'application/json, text/plain, */*',
+2025-05-02T15:57:12:       'Content-Type': 'application/x-www-form-urlencoded',
+2025-05-02T15:57:12:       'User-Agent': 'axios/1.7.7',
+2025-05-02T15:57:12:       'Content-Length': '311',
+2025-05-02T15:57:12:       'Accept-Encoding': 'gzip, compress, deflate, br'
+2025-05-02T15:57:12:     },
+2025-05-02T15:57:12:     httpAgent: Agent {
+2025-05-02T15:57:12:       _events: [Object: null prototype],
+2025-05-02T15:57:12:       _eventsCount: 2,
+2025-05-02T15:57:12:       _maxListeners: undefined,
+2025-05-02T15:57:12:       defaultPort: 80,
+2025-05-02T15:57:12:       protocol: 'http:',
+2025-05-02T15:57:12:       options: [Object: null prototype],
+2025-05-02T15:57:12:       requests: [Object: null prototype] {},
+2025-05-02T15:57:12:       sockets: [Object: null prototype] {},
+2025-05-02T15:57:12:       freeSockets: [Object: null prototype] {},
+2025-05-02T15:57:12:       keepAliveMsecs: 1000,
+2025-05-02T15:57:12:       keepAlive: true,
+2025-05-02T15:57:12:       maxSockets: 5,
+2025-05-02T15:57:12:       maxFreeSockets: 2,
+2025-05-02T15:57:12:       scheduling: 'lifo',
+2025-05-02T15:57:12:       maxTotalSockets: Infinity,
+2025-05-02T15:57:12:       totalSocketCount: 0,
+2025-05-02T15:57:12:       [Symbol(shapeMode)]: false,
+2025-05-02T15:57:12:       [Symbol(kCapture)]: false
+2025-05-02T15:57:12:     },
+2025-05-02T15:57:12:     method: 'post',
+2025-05-02T15:57:12:     url: 'https://open.zhihu.com/openapi/km-agent/v1/new-ad-link',
+2025-05-02T15:57:12:     data: '{"timestamp":"1746172632","app_id":"7499289958303842314","data":{"member_token":"56-14-35-46-44","work_id":"1894456139606906802","media_channel_type":5,"ad_link_name":"测试链接","app_id":"tt2ffb5946b0cb808001","callback_type":0,"callback_rule_id":"1857508752934199296","payment_template_id":"2618","num":1}}'
+2025-05-02T15:57:12:   },
+2025-05-02T15:57:12:   request: <ref *1> ClientRequest {
+2025-05-02T15:57:12:     _events: [Object: null prototype] {
+2025-05-02T15:57:12:       abort: [Function (anonymous)],
+2025-05-02T15:57:12:       aborted: [Function (anonymous)],
+2025-05-02T15:57:12:       connect: [Function (anonymous)],
+2025-05-02T15:57:12:       error: [Function (anonymous)],
+2025-05-02T15:57:12:       socket: [Function (anonymous)],
+2025-05-02T15:57:12:       timeout: [Function (anonymous)],
+2025-05-02T15:57:12:       finish: [Function: requestOnFinish]
+2025-05-02T15:57:12:     },
+2025-05-02T15:57:12:     _eventsCount: 7,
+2025-05-02T15:57:12:     _maxListeners: undefined,
+2025-05-02T15:57:12:     outputData: [],
+2025-05-02T15:57:12:     outputSize: 0,
+2025-05-02T15:57:12:     writable: true,
+2025-05-02T15:57:12:     destroyed: true,
+2025-05-02T15:57:12:     _last: false,
+2025-05-02T15:57:12:     chunkedEncoding: false,
+2025-05-02T15:57:12:     shouldKeepAlive: true,
+2025-05-02T15:57:12:     maxRequestsOnConnectionReached: false,
+2025-05-02T15:57:12:     _defaultKeepAlive: true,
+2025-05-02T15:57:12:     useChunkedEncodingByDefault: true,
+2025-05-02T15:57:12:     sendDate: false,
+2025-05-02T15:57:12:     _removedConnection: false,
+2025-05-02T15:57:12:     _removedContLen: false,
+2025-05-02T15:57:12:     _removedTE: false,
+2025-05-02T15:57:12:     strictContentLength: false,
+2025-05-02T15:57:12:     _contentLength: '311',
+2025-05-02T15:57:12:     _hasBody: true,
+2025-05-02T15:57:12:     _trailer: '',
+2025-05-02T15:57:12:     finished: true,
+2025-05-02T15:57:12:     _headerSent: true,
+2025-05-02T15:57:12:     _closed: true,
+2025-05-02T15:57:12:     socket: TLSSocket {
+2025-05-02T15:57:12:       _tlsOptions: [Object],
+2025-05-02T15:57:12:       _secureEstablished: true,
+2025-05-02T15:57:12:       _securePending: false,
+2025-05-02T15:57:12:       _newSessionPending: false,
+2025-05-02T15:57:12:       _controlReleased: true,
+2025-05-02T15:57:12:       secureConnecting: false,
+2025-05-02T15:57:12:       _SNICallback: null,
+2025-05-02T15:57:12:       servername: 'open.zhihu.com',
+2025-05-02T15:57:12:       alpnProtocol: false,
+2025-05-02T15:57:12:       authorized: true,
+2025-05-02T15:57:12:       authorizationError: null,
+2025-05-02T15:57:12:       encrypted: true,
+2025-05-02T15:57:12:       _events: [Object: null prototype],
+2025-05-02T15:57:12:       _eventsCount: 9,
+2025-05-02T15:57:12:       connecting: false,
+2025-05-02T15:57:12:       _hadError: false,
+2025-05-02T15:57:12:       _parent: null,
+2025-05-02T15:57:12:       _host: 'open.zhihu.com',
+2025-05-02T15:57:12:       _closeAfterHandlingError: false,
+2025-05-02T15:57:12:       _readableState: [ReadableState],
+2025-05-02T15:57:12:       _writableState: [WritableState],
+2025-05-02T15:57:12:       allowHalfOpen: false,
+2025-05-02T15:57:12:       _maxListeners: undefined,
+2025-05-02T15:57:12:       _sockname: null,
+2025-05-02T15:57:12:       _pendingData: null,
+2025-05-02T15:57:12:       _pendingEncoding: '',
+2025-05-02T15:57:12:       server: undefined,
+2025-05-02T15:57:12:       _server: null,
+2025-05-02T15:57:12:       ssl: [TLSWrap],
+2025-05-02T15:57:12:       _requestCert: true,
+2025-05-02T15:57:12:       _rejectUnauthorized: true,
+2025-05-02T15:57:12:       timeout: 5000,
+2025-05-02T15:57:12:       parser: null,
+2025-05-02T15:57:12:       _httpMessage: null,
+2025-05-02T15:57:12:       autoSelectFamilyAttemptedAddresses: [Array],
+2025-05-02T15:57:12:       [Symbol(alpncallback)]: null,
+2025-05-02T15:57:12:       [Symbol(res)]: [TLSWrap],
+2025-05-02T15:57:12:       [Symbol(verified)]: true,
+2025-05-02T15:57:12:       [Symbol(pendingSession)]: null,
+2025-05-02T15:57:12:       [Symbol(async_id_symbol)]: -1,
+2025-05-02T15:57:12:       [Symbol(kHandle)]: [TLSWrap],
+2025-05-02T15:57:12:       [Symbol(lastWriteQueueSize)]: 0,
+2025-05-02T15:57:12:       [Symbol(timeout)]: Timeout {
+2025-05-02T15:57:12:         _idleTimeout: 5000,
+2025-05-02T15:57:12:         _idlePrev: [TimersList],
+2025-05-02T15:57:12:         _idleNext: [TimersList],
+2025-05-02T15:57:12:         _idleStart: 2602,
+2025-05-02T15:57:12:         _onTimeout: [Function: bound ],
+2025-05-02T15:57:12:         _timerArgs: undefined,
+2025-05-02T15:57:12:         _repeat: null,
+2025-05-02T15:57:12:         _destroyed: false,
+2025-05-02T15:57:12:         [Symbol(refed)]: false,
+2025-05-02T15:57:12:         [Symbol(kHasPrimitive)]: false,
+2025-05-02T15:57:12:         [Symbol(asyncId)]: 42,
+2025-05-02T15:57:12:         [Symbol(triggerId)]: 40
+2025-05-02T15:57:12:       },
+2025-05-02T15:57:12:       [Symbol(kBuffer)]: null,
+2025-05-02T15:57:12:       [Symbol(kBufferCb)]: null,
+2025-05-02T15:57:12:       [Symbol(kBufferGen)]: null,
+2025-05-02T15:57:12:       [Symbol(shapeMode)]: true,
+2025-05-02T15:57:12:       [Symbol(kCapture)]: false,
+2025-05-02T15:57:12:       [Symbol(kSetNoDelay)]: false,
+2025-05-02T15:57:12:       [Symbol(kSetKeepAlive)]: true,
+2025-05-02T15:57:12:       [Symbol(kSetKeepAliveInitialDelay)]: 1,
+2025-05-02T15:57:12:       [Symbol(kBytesRead)]: 0,
+2025-05-02T15:57:12:       [Symbol(kBytesWritten)]: 0,
+2025-05-02T15:57:12:       [Symbol(connect-options)]: [Object]
+2025-05-02T15:57:12:     },
+2025-05-02T15:57:12:     _header: 'POST /openapi/km-agent/v1/new-ad-link HTTP/1.1\r\n' +
+2025-05-02T15:57:12:       'Accept: application/json, text/plain, */*\r\n' +
+2025-05-02T15:57:12:       'Content-Type: application/x-www-form-urlencoded\r\n' +
+2025-05-02T15:57:12:       'User-Agent: axios/1.7.7\r\n' +
+2025-05-02T15:57:12:       'Content-Length: 311\r\n' +
+2025-05-02T15:57:12:       'Accept-Encoding: gzip, compress, deflate, br\r\n' +
+2025-05-02T15:57:12:       'Host: open.zhihu.com\r\n' +
+2025-05-02T15:57:12:       'Connection: keep-alive\r\n' +
+2025-05-02T15:57:12:       '\r\n',
+2025-05-02T15:57:12:     _keepAliveTimeout: 0,
+2025-05-02T15:57:12:     _onPendingData: [Function: nop],
+2025-05-02T15:57:12:     agent: Agent {
+2025-05-02T15:57:12:       _events: [Object: null prototype],
+2025-05-02T15:57:12:       _eventsCount: 2,
+2025-05-02T15:57:12:       _maxListeners: undefined,
+2025-05-02T15:57:12:       defaultPort: 443,
+2025-05-02T15:57:12:       protocol: 'https:',
+2025-05-02T15:57:12:       options: [Object: null prototype],
+2025-05-02T15:57:12:       requests: [Object: null prototype] {},
+2025-05-02T15:57:12:       sockets: [Object: null prototype] {},
+2025-05-02T15:57:12:       freeSockets: [Object: null prototype],
+2025-05-02T15:57:12:       keepAliveMsecs: 1000,
+2025-05-02T15:57:12:       keepAlive: true,
+2025-05-02T15:57:12:       maxSockets: Infinity,
+2025-05-02T15:57:12:       maxFreeSockets: 256,
+2025-05-02T15:57:12:       scheduling: 'lifo',
+2025-05-02T15:57:12:       maxTotalSockets: Infinity,
+2025-05-02T15:57:12:       totalSocketCount: 1,
+2025-05-02T15:57:12:       maxCachedSessions: 100,
+2025-05-02T15:57:12:       _sessionCache: [Object],
+2025-05-02T15:57:12:       [Symbol(shapeMode)]: false,
+2025-05-02T15:57:12:       [Symbol(kCapture)]: false
+2025-05-02T15:57:12:     },
+2025-05-02T15:57:12:     socketPath: undefined,
+2025-05-02T15:57:12:     method: 'POST',
+2025-05-02T15:57:12:     maxHeaderSize: undefined,
+2025-05-02T15:57:12:     insecureHTTPParser: undefined,
+2025-05-02T15:57:12:     joinDuplicateHeaders: undefined,
+2025-05-02T15:57:12:     path: '/openapi/km-agent/v1/new-ad-link',
+2025-05-02T15:57:12:     _ended: true,
+2025-05-02T15:57:12:     res: IncomingMessage {
+2025-05-02T15:57:12:       _events: [Object],
+2025-05-02T15:57:12:       _readableState: [ReadableState],
+2025-05-02T15:57:12:       _maxListeners: undefined,
+2025-05-02T15:57:12:       socket: null,
+2025-05-02T15:57:12:       httpVersionMajor: 1,
+2025-05-02T15:57:12:       httpVersionMinor: 1,
+2025-05-02T15:57:12:       httpVersion: '1.1',
+2025-05-02T15:57:12:       complete: true,
+2025-05-02T15:57:12:       rawHeaders: [Array],
+2025-05-02T15:57:12:       rawTrailers: [],
+2025-05-02T15:57:12:       joinDuplicateHeaders: undefined,
+2025-05-02T15:57:12:       aborted: false,
+2025-05-02T15:57:12:       upgrade: false,
+2025-05-02T15:57:12:       url: '',
+2025-05-02T15:57:12:       method: null,
+2025-05-02T15:57:12:       statusCode: 200,
+2025-05-02T15:57:12:       statusMessage: 'OK',
+2025-05-02T15:57:12:       client: [TLSSocket],
+2025-05-02T15:57:12:       _consuming: false,
+2025-05-02T15:57:12:       _dumped: false,
+2025-05-02T15:57:12:       req: [Circular *1],
+2025-05-02T15:57:12:       _eventsCount: 4,
+2025-05-02T15:57:12:       responseUrl: 'https://open.zhihu.com/openapi/km-agent/v1/new-ad-link',
+2025-05-02T15:57:12:       redirects: [],
+2025-05-02T15:57:12:       [Symbol(shapeMode)]: true,
+2025-05-02T15:57:12:       [Symbol(kCapture)]: false,
+2025-05-02T15:57:12:       [Symbol(kHeaders)]: [Object],
+2025-05-02T15:57:12:       [Symbol(kHeadersCount)]: 22,
+2025-05-02T15:57:12:       [Symbol(kTrailers)]: null,
+2025-05-02T15:57:12:       [Symbol(kTrailersCount)]: 0
+2025-05-02T15:57:12:     },
+2025-05-02T15:57:12:     aborted: false,
+2025-05-02T15:57:12:     timeoutCb: null,
+2025-05-02T15:57:12:     upgradeOrConnect: false,
+2025-05-02T15:57:12:     parser: null,
+2025-05-02T15:57:12:     maxHeadersCount: null,
+2025-05-02T15:57:12:     reusedSocket: false,
+2025-05-02T15:57:12:     host: 'open.zhihu.com',
+2025-05-02T15:57:12:     protocol: 'https:',
+2025-05-02T15:57:12:     _redirectable: Writable {
+2025-05-02T15:57:12:       _events: [Object],
+2025-05-02T15:57:12:       _writableState: [WritableState],
+2025-05-02T15:57:12:       _maxListeners: undefined,
+2025-05-02T15:57:12:       _options: [Object],
+2025-05-02T15:57:12:       _ended: true,
+2025-05-02T15:57:12:       _ending: true,
+2025-05-02T15:57:12:       _redirectCount: 0,
+2025-05-02T15:57:12:       _redirects: [],
+2025-05-02T15:57:12:       _requestBodyLength: 311,
+2025-05-02T15:57:12:       _requestBodyBuffers: [],
+2025-05-02T15:57:12:       _eventsCount: 3,
+2025-05-02T15:57:12:       _onNativeResponse: [Function (anonymous)],
+2025-05-02T15:57:12:       _currentRequest: [Circular *1],
+2025-05-02T15:57:12:       _currentUrl: 'https://open.zhihu.com/openapi/km-agent/v1/new-ad-link',
+2025-05-02T15:57:12:       _timeout: null,
+2025-05-02T15:57:12:       [Symbol(shapeMode)]: true,
+2025-05-02T15:57:12:       [Symbol(kCapture)]: false
+2025-05-02T15:57:12:     },
+2025-05-02T15:57:12:     [Symbol(shapeMode)]: false,
+2025-05-02T15:57:12:     [Symbol(kCapture)]: false,
+2025-05-02T15:57:12:     [Symbol(kBytesWritten)]: 0,
+2025-05-02T15:57:12:     [Symbol(kNeedDrain)]: false,
+2025-05-02T15:57:12:     [Symbol(corked)]: 0,
+2025-05-02T15:57:12:     [Symbol(kOutHeaders)]: [Object: null prototype] {
+2025-05-02T15:57:12:       accept: [Array],
+2025-05-02T15:57:12:       'content-type': [Array],
+2025-05-02T15:57:12:       'user-agent': [Array],
+2025-05-02T15:57:12:       'content-length': [Array],
+2025-05-02T15:57:12:       'accept-encoding': [Array],
+2025-05-02T15:57:12:       host: [Array]
+2025-05-02T15:57:12:     },
+2025-05-02T15:57:12:     [Symbol(errored)]: null,
+2025-05-02T15:57:12:     [Symbol(kHighWaterMark)]: 16384,
+2025-05-02T15:57:12:     [Symbol(kRejectNonStandardBodyWrites)]: false,
+2025-05-02T15:57:12:     [Symbol(kUniqueHeaders)]: null
+2025-05-02T15:57:12:   },
+2025-05-02T15:57:12:   data: { retCode: 100002, retMsg: '非法的终端(签名校验错误)', data: null }
+2025-05-02T15:57:12: }
+>>>>>>> 48f22889243f479e90a3be087484bf2af2335261

+ 585 - 0
logs/out.log

@@ -348,7 +348,592 @@
 2025-05-02T11:33:26:   total_price: 0,
 2025-05-02T11:33:26:   word_count: 2223760
 2025-05-02T11:33:26: }
+<<<<<<< HEAD
 2025-05-02T11:51:25: 
 2025-05-02T11:51:25: > heiyan@1.0.0 start
 2025-05-02T11:51:25: > node tg_factory_main.js
 2025-05-02T11:51:25: 
+=======
+2025-05-02T15:55:11: 
+2025-05-02T15:55:11: > heiyan@1.0.0 start
+2025-05-02T15:55:11: > node tg_factory_main.js
+2025-05-02T15:55:11: 
+2025-05-02T15:55:13: Connected to Redis
+2025-05-02T15:55:14: response: {
+2025-05-02T15:55:14:   status: 200,
+2025-05-02T15:55:14:   statusText: 'OK',
+2025-05-02T15:55:14:   headers: Object [AxiosHeaders] {
+2025-05-02T15:55:14:     server: 'BLB/23.08.4.1',
+2025-05-02T15:55:14:     date: 'Fri, 02 May 2025 07:55:14 GMT',
+2025-05-02T15:55:14:     'content-type': 'text/plain; charset=utf-8',
+2025-05-02T15:55:14:     'content-length': '81',
+2025-05-02T15:55:14:     connection: 'keep-alive',
+2025-05-02T15:55:14:     'x-dayu-backend-response': '0.002',
+2025-05-02T15:55:14:     vary: 'Accept-Encoding',
+2025-05-02T15:55:14:     'referrer-policy': 'no-referrer-when-downgrade',
+2025-05-02T15:55:14:     'x-secng-response': '0.003000020980835',
+2025-05-02T15:55:14:     'set-cookie': [
+2025-05-02T15:55:14:       '_xsrf=sJlFtdLUpS5DkU27ylEzqj1Q3JaC3Ebt; path=/; domain=zhihu.com; expires=Tue, 19-Oct-27 07:55:14 GMT',
+2025-05-02T15:55:14:       'BEC=e9bdbc10d489caddf435785a710b7029;Path=/;Max-Age=3600'
+2025-05-02T15:55:14:     ]
+2025-05-02T15:55:14:   },
+2025-05-02T15:55:14:   config: {
+2025-05-02T15:55:14:     transitional: {
+2025-05-02T15:55:14:       silentJSONParsing: true,
+2025-05-02T15:55:14:       forcedJSONParsing: true,
+2025-05-02T15:55:14:       clarifyTimeoutError: false
+2025-05-02T15:55:14:     },
+2025-05-02T15:55:14:     adapter: [ 'xhr', 'http', 'fetch' ],
+2025-05-02T15:55:14:     transformRequest: [ [Function: transformRequest] ],
+2025-05-02T15:55:14:     transformResponse: [ [Function: transformResponse] ],
+2025-05-02T15:55:14:     timeout: 30000,
+2025-05-02T15:55:14:     xsrfCookieName: 'XSRF-TOKEN',
+2025-05-02T15:55:14:     xsrfHeaderName: 'X-XSRF-TOKEN',
+2025-05-02T15:55:14:     maxContentLength: -1,
+2025-05-02T15:55:14:     maxBodyLength: -1,
+2025-05-02T15:55:14:     env: { FormData: [Function], Blob: [class Blob] },
+2025-05-02T15:55:14:     validateStatus: [Function: validateStatus],
+2025-05-02T15:55:14:     headers: Object [AxiosHeaders] {
+2025-05-02T15:55:14:       Accept: 'application/json, text/plain, */*',
+2025-05-02T15:55:14:       'Content-Type': 'application/x-www-form-urlencoded',
+2025-05-02T15:55:14:       'User-Agent': 'axios/1.7.7',
+2025-05-02T15:55:14:       'Content-Length': '311',
+2025-05-02T15:55:14:       'Accept-Encoding': 'gzip, compress, deflate, br'
+2025-05-02T15:55:14:     },
+2025-05-02T15:55:14:     httpAgent: Agent {
+2025-05-02T15:55:14:       _events: [Object: null prototype],
+2025-05-02T15:55:14:       _eventsCount: 2,
+2025-05-02T15:55:14:       _maxListeners: undefined,
+2025-05-02T15:55:14:       defaultPort: 80,
+2025-05-02T15:55:14:       protocol: 'http:',
+2025-05-02T15:55:14:       options: [Object: null prototype],
+2025-05-02T15:55:14:       requests: [Object: null prototype] {},
+2025-05-02T15:55:14:       sockets: [Object: null prototype] {},
+2025-05-02T15:55:14:       freeSockets: [Object: null prototype] {},
+2025-05-02T15:55:14:       keepAliveMsecs: 1000,
+2025-05-02T15:55:14:       keepAlive: true,
+2025-05-02T15:55:14:       maxSockets: 5,
+2025-05-02T15:55:14:       maxFreeSockets: 2,
+2025-05-02T15:55:14:       scheduling: 'lifo',
+2025-05-02T15:55:14:       maxTotalSockets: Infinity,
+2025-05-02T15:55:14:       totalSocketCount: 0,
+2025-05-02T15:55:14:       [Symbol(shapeMode)]: false,
+2025-05-02T15:55:14:       [Symbol(kCapture)]: false
+2025-05-02T15:55:14:     },
+2025-05-02T15:55:14:     method: 'post',
+2025-05-02T15:55:14:     url: 'https://open.zhihu.com/openapi/km-agent/v1/new-ad-link',
+2025-05-02T15:55:14:     data: '{"timestamp":"1746172513","app_id":"7499289958303842314","data":{"member_token":"56-14-35-46-44","work_id":"1894456139606906802","media_channel_type":5,"ad_link_name":"测试链接","app_id":"tt2ffb5946b0cb808001","callback_type":0,"callback_rule_id":"1857508752934199296","payment_template_id":"2618","num":1}}'
+2025-05-02T15:55:14:   },
+2025-05-02T15:55:14:   request: <ref *1> ClientRequest {
+2025-05-02T15:55:14:     _events: [Object: null prototype] {
+2025-05-02T15:55:14:       abort: [Function (anonymous)],
+2025-05-02T15:55:14:       aborted: [Function (anonymous)],
+2025-05-02T15:55:14:       connect: [Function (anonymous)],
+2025-05-02T15:55:14:       error: [Function (anonymous)],
+2025-05-02T15:55:14:       socket: [Function (anonymous)],
+2025-05-02T15:55:14:       timeout: [Function (anonymous)],
+2025-05-02T15:55:14:       finish: [Function: requestOnFinish]
+2025-05-02T15:55:14:     },
+2025-05-02T15:55:14:     _eventsCount: 7,
+2025-05-02T15:55:14:     _maxListeners: undefined,
+2025-05-02T15:55:14:     outputData: [],
+2025-05-02T15:55:14:     outputSize: 0,
+2025-05-02T15:55:14:     writable: true,
+2025-05-02T15:55:14:     destroyed: true,
+2025-05-02T15:55:14:     _last: false,
+2025-05-02T15:55:14:     chunkedEncoding: false,
+2025-05-02T15:55:14:     shouldKeepAlive: true,
+2025-05-02T15:55:14:     maxRequestsOnConnectionReached: false,
+2025-05-02T15:55:14:     _defaultKeepAlive: true,
+2025-05-02T15:55:14:     useChunkedEncodingByDefault: true,
+2025-05-02T15:55:14:     sendDate: false,
+2025-05-02T15:55:14:     _removedConnection: false,
+2025-05-02T15:55:14:     _removedContLen: false,
+2025-05-02T15:55:14:     _removedTE: false,
+2025-05-02T15:55:14:     strictContentLength: false,
+2025-05-02T15:55:14:     _contentLength: '311',
+2025-05-02T15:55:14:     _hasBody: true,
+2025-05-02T15:55:14:     _trailer: '',
+2025-05-02T15:55:14:     finished: true,
+2025-05-02T15:55:14:     _headerSent: true,
+2025-05-02T15:55:14:     _closed: true,
+2025-05-02T15:55:14:     socket: TLSSocket {
+2025-05-02T15:55:14:       _tlsOptions: [Object],
+2025-05-02T15:55:14:       _secureEstablished: true,
+2025-05-02T15:55:14:       _securePending: false,
+2025-05-02T15:55:14:       _newSessionPending: false,
+2025-05-02T15:55:14:       _controlReleased: true,
+2025-05-02T15:55:14:       secureConnecting: false,
+2025-05-02T15:55:14:       _SNICallback: null,
+2025-05-02T15:55:14:       servername: 'open.zhihu.com',
+2025-05-02T15:55:14:       alpnProtocol: false,
+2025-05-02T15:55:14:       authorized: true,
+2025-05-02T15:55:14:       authorizationError: null,
+2025-05-02T15:55:14:       encrypted: true,
+2025-05-02T15:55:14:       _events: [Object: null prototype],
+2025-05-02T15:55:14:       _eventsCount: 9,
+2025-05-02T15:55:14:       connecting: false,
+2025-05-02T15:55:14:       _hadError: false,
+2025-05-02T15:55:14:       _parent: null,
+2025-05-02T15:55:14:       _host: 'open.zhihu.com',
+2025-05-02T15:55:14:       _closeAfterHandlingError: false,
+2025-05-02T15:55:14:       _readableState: [ReadableState],
+2025-05-02T15:55:14:       _writableState: [WritableState],
+2025-05-02T15:55:14:       allowHalfOpen: false,
+2025-05-02T15:55:14:       _maxListeners: undefined,
+2025-05-02T15:55:14:       _sockname: null,
+2025-05-02T15:55:14:       _pendingData: null,
+2025-05-02T15:55:14:       _pendingEncoding: '',
+2025-05-02T15:55:14:       server: undefined,
+2025-05-02T15:55:14:       _server: null,
+2025-05-02T15:55:14:       ssl: [TLSWrap],
+2025-05-02T15:55:14:       _requestCert: true,
+2025-05-02T15:55:14:       _rejectUnauthorized: true,
+2025-05-02T15:55:14:       timeout: 5000,
+2025-05-02T15:55:14:       parser: null,
+2025-05-02T15:55:14:       _httpMessage: null,
+2025-05-02T15:55:14:       autoSelectFamilyAttemptedAddresses: [Array],
+2025-05-02T15:55:14:       [Symbol(alpncallback)]: null,
+2025-05-02T15:55:14:       [Symbol(res)]: [TLSWrap],
+2025-05-02T15:55:14:       [Symbol(verified)]: true,
+2025-05-02T15:55:14:       [Symbol(pendingSession)]: null,
+2025-05-02T15:55:14:       [Symbol(async_id_symbol)]: -1,
+2025-05-02T15:55:14:       [Symbol(kHandle)]: [TLSWrap],
+2025-05-02T15:55:14:       [Symbol(lastWriteQueueSize)]: 0,
+2025-05-02T15:55:14:       [Symbol(timeout)]: Timeout {
+2025-05-02T15:55:14:         _idleTimeout: 5000,
+2025-05-02T15:55:14:         _idlePrev: [TimersList],
+2025-05-02T15:55:14:         _idleNext: [TimersList],
+2025-05-02T15:55:14:         _idleStart: 2904,
+2025-05-02T15:55:14:         _onTimeout: [Function: bound ],
+2025-05-02T15:55:14:         _timerArgs: undefined,
+2025-05-02T15:55:14:         _repeat: null,
+2025-05-02T15:55:14:         _destroyed: false,
+2025-05-02T15:55:14:         [Symbol(refed)]: false,
+2025-05-02T15:55:14:         [Symbol(kHasPrimitive)]: false,
+2025-05-02T15:55:14:         [Symbol(asyncId)]: 42,
+2025-05-02T15:55:14:         [Symbol(triggerId)]: 40
+2025-05-02T15:55:14:       },
+2025-05-02T15:55:14:       [Symbol(kBuffer)]: null,
+2025-05-02T15:55:14:       [Symbol(kBufferCb)]: null,
+2025-05-02T15:55:14:       [Symbol(kBufferGen)]: null,
+2025-05-02T15:55:14:       [Symbol(shapeMode)]: true,
+2025-05-02T15:55:14:       [Symbol(kCapture)]: false,
+2025-05-02T15:55:14:       [Symbol(kSetNoDelay)]: false,
+2025-05-02T15:55:14:       [Symbol(kSetKeepAlive)]: true,
+2025-05-02T15:55:14:       [Symbol(kSetKeepAliveInitialDelay)]: 1,
+2025-05-02T15:55:14:       [Symbol(kBytesRead)]: 0,
+2025-05-02T15:55:14:       [Symbol(kBytesWritten)]: 0,
+2025-05-02T15:55:14:       [Symbol(connect-options)]: [Object]
+2025-05-02T15:55:14:     },
+2025-05-02T15:55:14:     _header: 'POST /openapi/km-agent/v1/new-ad-link HTTP/1.1\r\n' +
+2025-05-02T15:55:14:       'Accept: application/json, text/plain, */*\r\n' +
+2025-05-02T15:55:14:       'Content-Type: application/x-www-form-urlencoded\r\n' +
+2025-05-02T15:55:14:       'User-Agent: axios/1.7.7\r\n' +
+2025-05-02T15:55:14:       'Content-Length: 311\r\n' +
+2025-05-02T15:55:14:       'Accept-Encoding: gzip, compress, deflate, br\r\n' +
+2025-05-02T15:55:14:       'Host: open.zhihu.com\r\n' +
+2025-05-02T15:55:14:       'Connection: keep-alive\r\n' +
+2025-05-02T15:55:14:       '\r\n',
+2025-05-02T15:55:14:     _keepAliveTimeout: 0,
+2025-05-02T15:55:14:     _onPendingData: [Function: nop],
+2025-05-02T15:55:14:     agent: Agent {
+2025-05-02T15:55:14:       _events: [Object: null prototype],
+2025-05-02T15:55:14:       _eventsCount: 2,
+2025-05-02T15:55:14:       _maxListeners: undefined,
+2025-05-02T15:55:14:       defaultPort: 443,
+2025-05-02T15:55:14:       protocol: 'https:',
+2025-05-02T15:55:14:       options: [Object: null prototype],
+2025-05-02T15:55:14:       requests: [Object: null prototype] {},
+2025-05-02T15:55:14:       sockets: [Object: null prototype] {},
+2025-05-02T15:55:14:       freeSockets: [Object: null prototype],
+2025-05-02T15:55:14:       keepAliveMsecs: 1000,
+2025-05-02T15:55:14:       keepAlive: true,
+2025-05-02T15:55:14:       maxSockets: Infinity,
+2025-05-02T15:55:14:       maxFreeSockets: 256,
+2025-05-02T15:55:14:       scheduling: 'lifo',
+2025-05-02T15:55:14:       maxTotalSockets: Infinity,
+2025-05-02T15:55:14:       totalSocketCount: 1,
+2025-05-02T15:55:14:       maxCachedSessions: 100,
+2025-05-02T15:55:14:       _sessionCache: [Object],
+2025-05-02T15:55:14:       [Symbol(shapeMode)]: false,
+2025-05-02T15:55:14:       [Symbol(kCapture)]: false
+2025-05-02T15:55:14:     },
+2025-05-02T15:55:14:     socketPath: undefined,
+2025-05-02T15:55:14:     method: 'POST',
+2025-05-02T15:55:14:     maxHeaderSize: undefined,
+2025-05-02T15:55:14:     insecureHTTPParser: undefined,
+2025-05-02T15:55:14:     joinDuplicateHeaders: undefined,
+2025-05-02T15:55:14:     path: '/openapi/km-agent/v1/new-ad-link',
+2025-05-02T15:55:14:     _ended: true,
+2025-05-02T15:55:14:     res: IncomingMessage {
+2025-05-02T15:55:14:       _events: [Object],
+2025-05-02T15:55:14:       _readableState: [ReadableState],
+2025-05-02T15:55:14:       _maxListeners: undefined,
+2025-05-02T15:55:14:       socket: null,
+2025-05-02T15:55:14:       httpVersionMajor: 1,
+2025-05-02T15:55:14:       httpVersionMinor: 1,
+2025-05-02T15:55:14:       httpVersion: '1.1',
+2025-05-02T15:55:14:       complete: true,
+2025-05-02T15:55:14:       rawHeaders: [Array],
+2025-05-02T15:55:14:       rawTrailers: [],
+2025-05-02T15:55:14:       joinDuplicateHeaders: undefined,
+2025-05-02T15:55:14:       aborted: false,
+2025-05-02T15:55:14:       upgrade: false,
+2025-05-02T15:55:14:       url: '',
+2025-05-02T15:55:14:       method: null,
+2025-05-02T15:55:14:       statusCode: 200,
+2025-05-02T15:55:14:       statusMessage: 'OK',
+2025-05-02T15:55:14:       client: [TLSSocket],
+2025-05-02T15:55:14:       _consuming: false,
+2025-05-02T15:55:14:       _dumped: false,
+2025-05-02T15:55:14:       req: [Circular *1],
+2025-05-02T15:55:14:       _eventsCount: 4,
+2025-05-02T15:55:14:       responseUrl: 'https://open.zhihu.com/openapi/km-agent/v1/new-ad-link',
+2025-05-02T15:55:14:       redirects: [],
+2025-05-02T15:55:14:       [Symbol(shapeMode)]: true,
+2025-05-02T15:55:14:       [Symbol(kCapture)]: false,
+2025-05-02T15:55:14:       [Symbol(kHeaders)]: [Object],
+2025-05-02T15:55:14:       [Symbol(kHeadersCount)]: 22,
+2025-05-02T15:55:14:       [Symbol(kTrailers)]: null,
+2025-05-02T15:55:14:       [Symbol(kTrailersCount)]: 0
+2025-05-02T15:55:14:     },
+2025-05-02T15:55:14:     aborted: false,
+2025-05-02T15:55:14:     timeoutCb: null,
+2025-05-02T15:55:14:     upgradeOrConnect: false,
+2025-05-02T15:55:14:     parser: null,
+2025-05-02T15:55:14:     maxHeadersCount: null,
+2025-05-02T15:55:14:     reusedSocket: false,
+2025-05-02T15:55:14:     host: 'open.zhihu.com',
+2025-05-02T15:55:14:     protocol: 'https:',
+2025-05-02T15:55:14:     _redirectable: Writable {
+2025-05-02T15:55:14:       _events: [Object],
+2025-05-02T15:55:14:       _writableState: [WritableState],
+2025-05-02T15:55:14:       _maxListeners: undefined,
+2025-05-02T15:55:14:       _options: [Object],
+2025-05-02T15:55:14:       _ended: true,
+2025-05-02T15:55:14:       _ending: true,
+2025-05-02T15:55:14:       _redirectCount: 0,
+2025-05-02T15:55:14:       _redirects: [],
+2025-05-02T15:55:14:       _requestBodyLength: 311,
+2025-05-02T15:55:14:       _requestBodyBuffers: [],
+2025-05-02T15:55:14:       _eventsCount: 3,
+2025-05-02T15:55:14:       _onNativeResponse: [Function (anonymous)],
+2025-05-02T15:55:14:       _currentRequest: [Circular *1],
+2025-05-02T15:55:14:       _currentUrl: 'https://open.zhihu.com/openapi/km-agent/v1/new-ad-link',
+2025-05-02T15:55:14:       _timeout: null,
+2025-05-02T15:55:14:       [Symbol(shapeMode)]: true,
+2025-05-02T15:55:14:       [Symbol(kCapture)]: false
+2025-05-02T15:55:14:     },
+2025-05-02T15:55:14:     [Symbol(shapeMode)]: false,
+2025-05-02T15:55:14:     [Symbol(kCapture)]: false,
+2025-05-02T15:55:14:     [Symbol(kBytesWritten)]: 0,
+2025-05-02T15:55:14:     [Symbol(kNeedDrain)]: false,
+2025-05-02T15:55:14:     [Symbol(corked)]: 0,
+2025-05-02T15:55:14:     [Symbol(kOutHeaders)]: [Object: null prototype] {
+2025-05-02T15:55:14:       accept: [Array],
+2025-05-02T15:55:14:       'content-type': [Array],
+2025-05-02T15:55:14:       'user-agent': [Array],
+2025-05-02T15:55:14:       'content-length': [Array],
+2025-05-02T15:55:14:       'accept-encoding': [Array],
+2025-05-02T15:55:14:       host: [Array]
+2025-05-02T15:55:14:     },
+2025-05-02T15:55:14:     [Symbol(errored)]: null,
+2025-05-02T15:55:14:     [Symbol(kHighWaterMark)]: 16384,
+2025-05-02T15:55:14:     [Symbol(kRejectNonStandardBodyWrites)]: false,
+2025-05-02T15:55:14:     [Symbol(kUniqueHeaders)]: null
+2025-05-02T15:55:14:   },
+2025-05-02T15:55:14:   data: { retCode: 100002, retMsg: '非法的终端(签名校验错误)', data: null }
+2025-05-02T15:55:14: }
+2025-05-02T15:57:10: 
+2025-05-02T15:57:10: > heiyan@1.0.0 start
+2025-05-02T15:57:10: > node tg_factory_main.js
+2025-05-02T15:57:10: 
+2025-05-02T15:57:12: Connected to Redis
+2025-05-02T15:57:12: response: {
+2025-05-02T15:57:12:   status: 200,
+2025-05-02T15:57:12:   statusText: 'OK',
+2025-05-02T15:57:12:   headers: Object [AxiosHeaders] {
+2025-05-02T15:57:12:     server: 'BLB/23.08.4.1',
+2025-05-02T15:57:12:     date: 'Fri, 02 May 2025 07:57:12 GMT',
+2025-05-02T15:57:12:     'content-type': 'text/plain; charset=utf-8',
+2025-05-02T15:57:12:     'content-length': '81',
+2025-05-02T15:57:12:     connection: 'keep-alive',
+2025-05-02T15:57:12:     'x-dayu-backend-response': '0.001',
+2025-05-02T15:57:12:     vary: 'Accept-Encoding',
+2025-05-02T15:57:12:     'referrer-policy': 'no-referrer-when-downgrade',
+2025-05-02T15:57:12:     'x-secng-response': '0.003000020980835',
+2025-05-02T15:57:12:     'set-cookie': [
+2025-05-02T15:57:12:       '_xsrf=IRYVqKsmw0dRBMdUJajzclfRt9raTW1D; path=/; domain=zhihu.com; expires=Tue, 19-Oct-27 07:57:12 GMT',
+2025-05-02T15:57:12:       'BEC=7729bbd832cc7c6d885273675bb3dc5b;Path=/;Max-Age=3600'
+2025-05-02T15:57:12:     ]
+2025-05-02T15:57:12:   },
+2025-05-02T15:57:12:   config: {
+2025-05-02T15:57:12:     transitional: {
+2025-05-02T15:57:12:       silentJSONParsing: true,
+2025-05-02T15:57:12:       forcedJSONParsing: true,
+2025-05-02T15:57:12:       clarifyTimeoutError: false
+2025-05-02T15:57:12:     },
+2025-05-02T15:57:12:     adapter: [ 'xhr', 'http', 'fetch' ],
+2025-05-02T15:57:12:     transformRequest: [ [Function: transformRequest] ],
+2025-05-02T15:57:12:     transformResponse: [ [Function: transformResponse] ],
+2025-05-02T15:57:12:     timeout: 30000,
+2025-05-02T15:57:12:     xsrfCookieName: 'XSRF-TOKEN',
+2025-05-02T15:57:12:     xsrfHeaderName: 'X-XSRF-TOKEN',
+2025-05-02T15:57:12:     maxContentLength: -1,
+2025-05-02T15:57:12:     maxBodyLength: -1,
+2025-05-02T15:57:12:     env: { FormData: [Function], Blob: [class Blob] },
+2025-05-02T15:57:12:     validateStatus: [Function: validateStatus],
+2025-05-02T15:57:12:     headers: Object [AxiosHeaders] {
+2025-05-02T15:57:12:       Accept: 'application/json, text/plain, */*',
+2025-05-02T15:57:12:       'Content-Type': 'application/x-www-form-urlencoded',
+2025-05-02T15:57:12:       'User-Agent': 'axios/1.7.7',
+2025-05-02T15:57:12:       'Content-Length': '311',
+2025-05-02T15:57:12:       'Accept-Encoding': 'gzip, compress, deflate, br'
+2025-05-02T15:57:12:     },
+2025-05-02T15:57:12:     httpAgent: Agent {
+2025-05-02T15:57:12:       _events: [Object: null prototype],
+2025-05-02T15:57:12:       _eventsCount: 2,
+2025-05-02T15:57:12:       _maxListeners: undefined,
+2025-05-02T15:57:12:       defaultPort: 80,
+2025-05-02T15:57:12:       protocol: 'http:',
+2025-05-02T15:57:12:       options: [Object: null prototype],
+2025-05-02T15:57:12:       requests: [Object: null prototype] {},
+2025-05-02T15:57:12:       sockets: [Object: null prototype] {},
+2025-05-02T15:57:12:       freeSockets: [Object: null prototype] {},
+2025-05-02T15:57:12:       keepAliveMsecs: 1000,
+2025-05-02T15:57:12:       keepAlive: true,
+2025-05-02T15:57:12:       maxSockets: 5,
+2025-05-02T15:57:12:       maxFreeSockets: 2,
+2025-05-02T15:57:12:       scheduling: 'lifo',
+2025-05-02T15:57:12:       maxTotalSockets: Infinity,
+2025-05-02T15:57:12:       totalSocketCount: 0,
+2025-05-02T15:57:12:       [Symbol(shapeMode)]: false,
+2025-05-02T15:57:12:       [Symbol(kCapture)]: false
+2025-05-02T15:57:12:     },
+2025-05-02T15:57:12:     method: 'post',
+2025-05-02T15:57:12:     url: 'https://open.zhihu.com/openapi/km-agent/v1/new-ad-link',
+2025-05-02T15:57:12:     data: '{"timestamp":"1746172632","app_id":"7499289958303842314","data":{"member_token":"56-14-35-46-44","work_id":"1894456139606906802","media_channel_type":5,"ad_link_name":"测试链接","app_id":"tt2ffb5946b0cb808001","callback_type":0,"callback_rule_id":"1857508752934199296","payment_template_id":"2618","num":1}}'
+2025-05-02T15:57:12:   },
+2025-05-02T15:57:12:   request: <ref *1> ClientRequest {
+2025-05-02T15:57:12:     _events: [Object: null prototype] {
+2025-05-02T15:57:12:       abort: [Function (anonymous)],
+2025-05-02T15:57:12:       aborted: [Function (anonymous)],
+2025-05-02T15:57:12:       connect: [Function (anonymous)],
+2025-05-02T15:57:12:       error: [Function (anonymous)],
+2025-05-02T15:57:12:       socket: [Function (anonymous)],
+2025-05-02T15:57:12:       timeout: [Function (anonymous)],
+2025-05-02T15:57:12:       finish: [Function: requestOnFinish]
+2025-05-02T15:57:12:     },
+2025-05-02T15:57:12:     _eventsCount: 7,
+2025-05-02T15:57:12:     _maxListeners: undefined,
+2025-05-02T15:57:12:     outputData: [],
+2025-05-02T15:57:12:     outputSize: 0,
+2025-05-02T15:57:12:     writable: true,
+2025-05-02T15:57:12:     destroyed: true,
+2025-05-02T15:57:12:     _last: false,
+2025-05-02T15:57:12:     chunkedEncoding: false,
+2025-05-02T15:57:12:     shouldKeepAlive: true,
+2025-05-02T15:57:12:     maxRequestsOnConnectionReached: false,
+2025-05-02T15:57:12:     _defaultKeepAlive: true,
+2025-05-02T15:57:12:     useChunkedEncodingByDefault: true,
+2025-05-02T15:57:12:     sendDate: false,
+2025-05-02T15:57:12:     _removedConnection: false,
+2025-05-02T15:57:12:     _removedContLen: false,
+2025-05-02T15:57:12:     _removedTE: false,
+2025-05-02T15:57:12:     strictContentLength: false,
+2025-05-02T15:57:12:     _contentLength: '311',
+2025-05-02T15:57:12:     _hasBody: true,
+2025-05-02T15:57:12:     _trailer: '',
+2025-05-02T15:57:12:     finished: true,
+2025-05-02T15:57:12:     _headerSent: true,
+2025-05-02T15:57:12:     _closed: true,
+2025-05-02T15:57:12:     socket: TLSSocket {
+2025-05-02T15:57:12:       _tlsOptions: [Object],
+2025-05-02T15:57:12:       _secureEstablished: true,
+2025-05-02T15:57:12:       _securePending: false,
+2025-05-02T15:57:12:       _newSessionPending: false,
+2025-05-02T15:57:12:       _controlReleased: true,
+2025-05-02T15:57:12:       secureConnecting: false,
+2025-05-02T15:57:12:       _SNICallback: null,
+2025-05-02T15:57:12:       servername: 'open.zhihu.com',
+2025-05-02T15:57:12:       alpnProtocol: false,
+2025-05-02T15:57:12:       authorized: true,
+2025-05-02T15:57:12:       authorizationError: null,
+2025-05-02T15:57:12:       encrypted: true,
+2025-05-02T15:57:12:       _events: [Object: null prototype],
+2025-05-02T15:57:12:       _eventsCount: 9,
+2025-05-02T15:57:12:       connecting: false,
+2025-05-02T15:57:12:       _hadError: false,
+2025-05-02T15:57:12:       _parent: null,
+2025-05-02T15:57:12:       _host: 'open.zhihu.com',
+2025-05-02T15:57:12:       _closeAfterHandlingError: false,
+2025-05-02T15:57:12:       _readableState: [ReadableState],
+2025-05-02T15:57:12:       _writableState: [WritableState],
+2025-05-02T15:57:12:       allowHalfOpen: false,
+2025-05-02T15:57:12:       _maxListeners: undefined,
+2025-05-02T15:57:12:       _sockname: null,
+2025-05-02T15:57:12:       _pendingData: null,
+2025-05-02T15:57:12:       _pendingEncoding: '',
+2025-05-02T15:57:12:       server: undefined,
+2025-05-02T15:57:12:       _server: null,
+2025-05-02T15:57:12:       ssl: [TLSWrap],
+2025-05-02T15:57:12:       _requestCert: true,
+2025-05-02T15:57:12:       _rejectUnauthorized: true,
+2025-05-02T15:57:12:       timeout: 5000,
+2025-05-02T15:57:12:       parser: null,
+2025-05-02T15:57:12:       _httpMessage: null,
+2025-05-02T15:57:12:       autoSelectFamilyAttemptedAddresses: [Array],
+2025-05-02T15:57:12:       [Symbol(alpncallback)]: null,
+2025-05-02T15:57:12:       [Symbol(res)]: [TLSWrap],
+2025-05-02T15:57:12:       [Symbol(verified)]: true,
+2025-05-02T15:57:12:       [Symbol(pendingSession)]: null,
+2025-05-02T15:57:12:       [Symbol(async_id_symbol)]: -1,
+2025-05-02T15:57:12:       [Symbol(kHandle)]: [TLSWrap],
+2025-05-02T15:57:12:       [Symbol(lastWriteQueueSize)]: 0,
+2025-05-02T15:57:12:       [Symbol(timeout)]: Timeout {
+2025-05-02T15:57:12:         _idleTimeout: 5000,
+2025-05-02T15:57:12:         _idlePrev: [TimersList],
+2025-05-02T15:57:12:         _idleNext: [TimersList],
+2025-05-02T15:57:12:         _idleStart: 2602,
+2025-05-02T15:57:12:         _onTimeout: [Function: bound ],
+2025-05-02T15:57:12:         _timerArgs: undefined,
+2025-05-02T15:57:12:         _repeat: null,
+2025-05-02T15:57:12:         _destroyed: false,
+2025-05-02T15:57:12:         [Symbol(refed)]: false,
+2025-05-02T15:57:12:         [Symbol(kHasPrimitive)]: false,
+2025-05-02T15:57:12:         [Symbol(asyncId)]: 42,
+2025-05-02T15:57:12:         [Symbol(triggerId)]: 40
+2025-05-02T15:57:12:       },
+2025-05-02T15:57:12:       [Symbol(kBuffer)]: null,
+2025-05-02T15:57:12:       [Symbol(kBufferCb)]: null,
+2025-05-02T15:57:12:       [Symbol(kBufferGen)]: null,
+2025-05-02T15:57:12:       [Symbol(shapeMode)]: true,
+2025-05-02T15:57:12:       [Symbol(kCapture)]: false,
+2025-05-02T15:57:12:       [Symbol(kSetNoDelay)]: false,
+2025-05-02T15:57:12:       [Symbol(kSetKeepAlive)]: true,
+2025-05-02T15:57:12:       [Symbol(kSetKeepAliveInitialDelay)]: 1,
+2025-05-02T15:57:12:       [Symbol(kBytesRead)]: 0,
+2025-05-02T15:57:12:       [Symbol(kBytesWritten)]: 0,
+2025-05-02T15:57:12:       [Symbol(connect-options)]: [Object]
+2025-05-02T15:57:12:     },
+2025-05-02T15:57:12:     _header: 'POST /openapi/km-agent/v1/new-ad-link HTTP/1.1\r\n' +
+2025-05-02T15:57:12:       'Accept: application/json, text/plain, */*\r\n' +
+2025-05-02T15:57:12:       'Content-Type: application/x-www-form-urlencoded\r\n' +
+2025-05-02T15:57:12:       'User-Agent: axios/1.7.7\r\n' +
+2025-05-02T15:57:12:       'Content-Length: 311\r\n' +
+2025-05-02T15:57:12:       'Accept-Encoding: gzip, compress, deflate, br\r\n' +
+2025-05-02T15:57:12:       'Host: open.zhihu.com\r\n' +
+2025-05-02T15:57:12:       'Connection: keep-alive\r\n' +
+2025-05-02T15:57:12:       '\r\n',
+2025-05-02T15:57:12:     _keepAliveTimeout: 0,
+2025-05-02T15:57:12:     _onPendingData: [Function: nop],
+2025-05-02T15:57:12:     agent: Agent {
+2025-05-02T15:57:12:       _events: [Object: null prototype],
+2025-05-02T15:57:12:       _eventsCount: 2,
+2025-05-02T15:57:12:       _maxListeners: undefined,
+2025-05-02T15:57:12:       defaultPort: 443,
+2025-05-02T15:57:12:       protocol: 'https:',
+2025-05-02T15:57:12:       options: [Object: null prototype],
+2025-05-02T15:57:12:       requests: [Object: null prototype] {},
+2025-05-02T15:57:12:       sockets: [Object: null prototype] {},
+2025-05-02T15:57:12:       freeSockets: [Object: null prototype],
+2025-05-02T15:57:12:       keepAliveMsecs: 1000,
+2025-05-02T15:57:12:       keepAlive: true,
+2025-05-02T15:57:12:       maxSockets: Infinity,
+2025-05-02T15:57:12:       maxFreeSockets: 256,
+2025-05-02T15:57:12:       scheduling: 'lifo',
+2025-05-02T15:57:12:       maxTotalSockets: Infinity,
+2025-05-02T15:57:12:       totalSocketCount: 1,
+2025-05-02T15:57:12:       maxCachedSessions: 100,
+2025-05-02T15:57:12:       _sessionCache: [Object],
+2025-05-02T15:57:12:       [Symbol(shapeMode)]: false,
+2025-05-02T15:57:12:       [Symbol(kCapture)]: false
+2025-05-02T15:57:12:     },
+2025-05-02T15:57:12:     socketPath: undefined,
+2025-05-02T15:57:12:     method: 'POST',
+2025-05-02T15:57:12:     maxHeaderSize: undefined,
+2025-05-02T15:57:12:     insecureHTTPParser: undefined,
+2025-05-02T15:57:12:     joinDuplicateHeaders: undefined,
+2025-05-02T15:57:12:     path: '/openapi/km-agent/v1/new-ad-link',
+2025-05-02T15:57:12:     _ended: true,
+2025-05-02T15:57:12:     res: IncomingMessage {
+2025-05-02T15:57:12:       _events: [Object],
+2025-05-02T15:57:12:       _readableState: [ReadableState],
+2025-05-02T15:57:12:       _maxListeners: undefined,
+2025-05-02T15:57:12:       socket: null,
+2025-05-02T15:57:12:       httpVersionMajor: 1,
+2025-05-02T15:57:12:       httpVersionMinor: 1,
+2025-05-02T15:57:12:       httpVersion: '1.1',
+2025-05-02T15:57:12:       complete: true,
+2025-05-02T15:57:12:       rawHeaders: [Array],
+2025-05-02T15:57:12:       rawTrailers: [],
+2025-05-02T15:57:12:       joinDuplicateHeaders: undefined,
+2025-05-02T15:57:12:       aborted: false,
+2025-05-02T15:57:12:       upgrade: false,
+2025-05-02T15:57:12:       url: '',
+2025-05-02T15:57:12:       method: null,
+2025-05-02T15:57:12:       statusCode: 200,
+2025-05-02T15:57:12:       statusMessage: 'OK',
+2025-05-02T15:57:12:       client: [TLSSocket],
+2025-05-02T15:57:12:       _consuming: false,
+2025-05-02T15:57:12:       _dumped: false,
+2025-05-02T15:57:12:       req: [Circular *1],
+2025-05-02T15:57:12:       _eventsCount: 4,
+2025-05-02T15:57:12:       responseUrl: 'https://open.zhihu.com/openapi/km-agent/v1/new-ad-link',
+2025-05-02T15:57:12:       redirects: [],
+2025-05-02T15:57:12:       [Symbol(shapeMode)]: true,
+2025-05-02T15:57:12:       [Symbol(kCapture)]: false,
+2025-05-02T15:57:12:       [Symbol(kHeaders)]: [Object],
+2025-05-02T15:57:12:       [Symbol(kHeadersCount)]: 22,
+2025-05-02T15:57:12:       [Symbol(kTrailers)]: null,
+2025-05-02T15:57:12:       [Symbol(kTrailersCount)]: 0
+2025-05-02T15:57:12:     },
+2025-05-02T15:57:12:     aborted: false,
+2025-05-02T15:57:12:     timeoutCb: null,
+2025-05-02T15:57:12:     upgradeOrConnect: false,
+2025-05-02T15:57:12:     parser: null,
+2025-05-02T15:57:12:     maxHeadersCount: null,
+2025-05-02T15:57:12:     reusedSocket: false,
+2025-05-02T15:57:12:     host: 'open.zhihu.com',
+2025-05-02T15:57:12:     protocol: 'https:',
+2025-05-02T15:57:12:     _redirectable: Writable {
+2025-05-02T15:57:12:       _events: [Object],
+2025-05-02T15:57:12:       _writableState: [WritableState],
+2025-05-02T15:57:12:       _maxListeners: undefined,
+2025-05-02T15:57:12:       _options: [Object],
+2025-05-02T15:57:12:       _ended: true,
+2025-05-02T15:57:12:       _ending: true,
+2025-05-02T15:57:12:       _redirectCount: 0,
+2025-05-02T15:57:12:       _redirects: [],
+2025-05-02T15:57:12:       _requestBodyLength: 311,
+2025-05-02T15:57:12:       _requestBodyBuffers: [],
+2025-05-02T15:57:12:       _eventsCount: 3,
+2025-05-02T15:57:12:       _onNativeResponse: [Function (anonymous)],
+2025-05-02T15:57:12:       _currentRequest: [Circular *1],
+2025-05-02T15:57:12:       _currentUrl: 'https://open.zhihu.com/openapi/km-agent/v1/new-ad-link',
+2025-05-02T15:57:12:       _timeout: null,
+2025-05-02T15:57:12:       [Symbol(shapeMode)]: true,
+2025-05-02T15:57:12:       [Symbol(kCapture)]: false
+2025-05-02T15:57:12:     },
+2025-05-02T15:57:12:     [Symbol(shapeMode)]: false,
+2025-05-02T15:57:12:     [Symbol(kCapture)]: false,
+2025-05-02T15:57:12:     [Symbol(kBytesWritten)]: 0,
+2025-05-02T15:57:12:     [Symbol(kNeedDrain)]: false,
+2025-05-02T15:57:12:     [Symbol(corked)]: 0,
+2025-05-02T15:57:12:     [Symbol(kOutHeaders)]: [Object: null prototype] {
+2025-05-02T15:57:12:       accept: [Array],
+2025-05-02T15:57:12:       'content-type': [Array],
+2025-05-02T15:57:12:       'user-agent': [Array],
+2025-05-02T15:57:12:       'content-length': [Array],
+2025-05-02T15:57:12:       'accept-encoding': [Array],
+2025-05-02T15:57:12:       host: [Array]
+2025-05-02T15:57:12:     },
+2025-05-02T15:57:12:     [Symbol(errored)]: null,
+2025-05-02T15:57:12:     [Symbol(kHighWaterMark)]: 16384,
+2025-05-02T15:57:12:     [Symbol(kRejectNonStandardBodyWrites)]: false,
+2025-05-02T15:57:12:     [Symbol(kUniqueHeaders)]: null
+2025-05-02T15:57:12:   },
+2025-05-02T15:57:12:   data: { retCode: 100002, retMsg: '非法的终端(签名校验错误)', data: null }
+2025-05-02T15:57:12: }
+>>>>>>> 48f22889243f479e90a3be087484bf2af2335261

+ 3 - 5
src/api/fq/fq_search_book.js

@@ -106,16 +106,14 @@ CMD.search_new_id = async function(bookId,call_back){
           const response = await axios(config);
           console.log("response:",response)
           if(response.data.code!=0){
-              throw response.data
+            return ""
           }
           if(response.data.data.length<=0){
             throw response.data
           }
           return response.data.data[0];
-      } catch (error) {
-            if(error.code!=0){
-                return ""
-            }
+      } catch (e) {
+            console.error(e)
           return null
       }
 }

+ 1 - 1
src/api/yw/yw_search_book.js

@@ -19,7 +19,7 @@ CMD.search_test_id = async function (bookId) {
               "sec-fetch-dest": "empty",
               "sec-fetch-mode": "cors",
               "sec-fetch-site": "same-origin",
-              "cookie": `Hm_lvt_990f9ab9737a266517417cc2949bb3f4=${timestamp}; csrfToken=ffZRRnqo6A4ngGbvAVP_zK5_; OPENSESSID=${OPENSESSID}; yw_open_token=67db7bcd069db; is_read_notice=67db7bcd069db; sidebarStatus=0`,
+              "cookie": `Hm_lvt_990f9ab9737a266517417cc2949bb3f4=${time}; csrfToken=ffZRRnqo6A4ngGbvAVP_zK5_; OPENSESSID=${OPENSESSID}; yw_open_token=67db7bcd069db; is_read_notice=67db7bcd069db; sidebarStatus=0`,
               "Referer": "https://open.yuewen.com/new/library",
               "Referrer-Policy": "strict-origin-when-cross-origin"
             },

+ 22 - 5
tg_factory_main.js

@@ -1,6 +1,3 @@
-setInterval(() => {
-
-}, 15000);
 const ProcessManager = require('./ProcessManager');
 const helper = require('./src/helper');
 const HttpClient = require('./src/HttpClient');
@@ -35,8 +32,28 @@ let isInit = false
 if(config.isDebug){
     redis_help.connect( async (results)=>{
         if(results){
-            let data =  await require('./src/api/fq/fq_search_book').search_new_id('7156137614049807396')
-            console.log("data:",data)
+            let client = tools.getOneNewClinet()
+            let timestamp = helper.getCurrentUnixTimestamp()
+            let response =  await client.post("https://open.zhihu.com/openapi/km-agent/v1/new-ad-link",JSON.stringify(
+                {
+                    "timestamp": `${timestamp}`,
+                    "app_id": "7499289958303842314",
+                    "data": {
+                      "member_token": "56-14-35-46-44",
+                      "work_id": "1894456139606906802",
+                      "media_channel_type": 5,
+                      "ad_link_name": "测试链接",
+                      "app_id": "tt2ffb5946b0cb808001",
+                      "callback_type": 0,
+                      "callback_rule_id": "1857508752934199296",
+                      "payment_template_id": "2618",
+                      "num": 1
+                    }
+                  }
+            ))
+            console.log("response:",response)
+            // let data =  await require('./src/api/fq/fq_search_book').search_new_id('7156137614049807396')
+            // console.log("data:",data)
             // let data = await require('./src/api/fq/fq_search_book').search_mf_new_id('7375572126402612286')
             // console.log("data:",data)
             // require('./src/api/dz/dz_login').login()