@iflyrpa/actions 3.0.5-beta.1 → 3.0.5-beta.2

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/dist/index.mjs CHANGED
@@ -5434,7 +5434,7 @@ function __webpack_require__(moduleId) {
5434
5434
  return module;
5435
5435
  };
5436
5436
  })();
5437
- var package_namespaceObject = JSON.parse('{"i8":"3.0.5-beta.1"}');
5437
+ var package_namespaceObject = JSON.parse('{"i8":"3.0.5-beta.2"}');
5438
5438
  var dist = __webpack_require__("../../node_modules/.pnpm/https-proxy-agent@7.0.6/node_modules/https-proxy-agent/dist/index.js");
5439
5439
  async function ProxyAgent(task, ip, adr, accountId, refresh) {
5440
5440
  const http = new Http({
@@ -21493,8 +21493,8 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
21493
21493
  headers
21494
21494
  });
21495
21495
  const proxyHttp = new Http(...args);
21496
- proxyHttp.addResponseInterceptor((response)=>{
21497
- const responseData = response.data;
21496
+ const baseRespFinder = (response)=>{
21497
+ const responseData = response?.data;
21498
21498
  const msgType = "draft" === params.saveType ? "同步" : "发布";
21499
21499
  if (response && responseData?.base_resp && 0 !== responseData.base_resp.ret && !ignoreErrno.includes(responseData.base_resp.ret)) {
21500
21500
  const errmsg = weixinPublish_mock_errnoMap[responseData.base_resp.ret] || response.config.defaultErrorMsg || responseData.base_resp.err_msg || `文章${msgType}异常,请稍后重试。`;
@@ -21504,7 +21504,9 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
21504
21504
  data: responseData
21505
21505
  };
21506
21506
  }
21507
- });
21507
+ };
21508
+ http.addResponseInterceptor(baseRespFinder);
21509
+ proxyHttp.addResponseInterceptor(baseRespFinder);
21508
21510
  await http.api({
21509
21511
  method: "get",
21510
21512
  url: "https://mp.weixin.qq.com/cgi-bin/appmsgpublish",