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

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.3"}');
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({
@@ -20247,8 +20247,10 @@ const toutiaoPublish_mock_mockAction = async (task, params)=>{
20247
20247
  tuwen_wtt_trans_flag: params.settingInfo?.toutiaoTransWtt ? "2" : "0",
20248
20248
  info_source: sourceData,
20249
20249
  ...location ? {
20250
- city: location.label,
20251
- city_code: location.value
20250
+ manual_selected_city: JSON.stringify({
20251
+ city: location.label,
20252
+ city_code: location.value
20253
+ })
20252
20254
  } : null,
20253
20255
  ...params.settingInfo?.toutiaoCollectionId ? {
20254
20256
  want_join_collection_id: params.settingInfo.toutiaoCollectionId
@@ -21493,8 +21495,8 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
21493
21495
  headers
21494
21496
  });
21495
21497
  const proxyHttp = new Http(...args);
21496
- proxyHttp.addResponseInterceptor((response)=>{
21497
- const responseData = response.data;
21498
+ const baseRespFinder = (response)=>{
21499
+ const responseData = response?.data;
21498
21500
  const msgType = "draft" === params.saveType ? "同步" : "发布";
21499
21501
  if (response && responseData?.base_resp && 0 !== responseData.base_resp.ret && !ignoreErrno.includes(responseData.base_resp.ret)) {
21500
21502
  const errmsg = weixinPublish_mock_errnoMap[responseData.base_resp.ret] || response.config.defaultErrorMsg || responseData.base_resp.err_msg || `文章${msgType}异常,请稍后重试。`;
@@ -21504,7 +21506,9 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
21504
21506
  data: responseData
21505
21507
  };
21506
21508
  }
21507
- });
21509
+ };
21510
+ http.addResponseInterceptor(baseRespFinder);
21511
+ proxyHttp.addResponseInterceptor(baseRespFinder);
21508
21512
  await http.api({
21509
21513
  method: "get",
21510
21514
  url: "https://mp.weixin.qq.com/cgi-bin/appmsgpublish",