@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/bundle.js +10 -6
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5489,7 +5489,7 @@ var __webpack_exports__ = {};
|
|
|
5489
5489
|
});
|
|
5490
5490
|
const package_json_namespaceObject = require("@iflyrpa/share/package.json");
|
|
5491
5491
|
var package_json_default = /*#__PURE__*/ __webpack_require__.n(package_json_namespaceObject);
|
|
5492
|
-
var package_namespaceObject = JSON.parse('{"i8":"3.0.5-beta.
|
|
5492
|
+
var package_namespaceObject = JSON.parse('{"i8":"3.0.5-beta.3"}');
|
|
5493
5493
|
const share_namespaceObject = require("@iflyrpa/share");
|
|
5494
5494
|
const external_node_fs_namespaceObject = require("node:fs");
|
|
5495
5495
|
var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
|
|
@@ -20332,8 +20332,10 @@ var __webpack_exports__ = {};
|
|
|
20332
20332
|
tuwen_wtt_trans_flag: params.settingInfo?.toutiaoTransWtt ? "2" : "0",
|
|
20333
20333
|
info_source: sourceData,
|
|
20334
20334
|
...location ? {
|
|
20335
|
-
|
|
20336
|
-
|
|
20335
|
+
manual_selected_city: JSON.stringify({
|
|
20336
|
+
city: location.label,
|
|
20337
|
+
city_code: location.value
|
|
20338
|
+
})
|
|
20337
20339
|
} : null,
|
|
20338
20340
|
...params.settingInfo?.toutiaoCollectionId ? {
|
|
20339
20341
|
want_join_collection_id: params.settingInfo.toutiaoCollectionId
|
|
@@ -21578,8 +21580,8 @@ var __webpack_exports__ = {};
|
|
|
21578
21580
|
headers
|
|
21579
21581
|
});
|
|
21580
21582
|
const proxyHttp = new Http(...args);
|
|
21581
|
-
|
|
21582
|
-
const responseData = response
|
|
21583
|
+
const baseRespFinder = (response)=>{
|
|
21584
|
+
const responseData = response?.data;
|
|
21583
21585
|
const msgType = "draft" === params.saveType ? "同步" : "发布";
|
|
21584
21586
|
if (response && responseData?.base_resp && 0 !== responseData.base_resp.ret && !ignoreErrno.includes(responseData.base_resp.ret)) {
|
|
21585
21587
|
const errmsg = weixinPublish_mock_errnoMap[responseData.base_resp.ret] || response.config.defaultErrorMsg || responseData.base_resp.err_msg || `文章${msgType}异常,请稍后重试。`;
|
|
@@ -21589,7 +21591,9 @@ var __webpack_exports__ = {};
|
|
|
21589
21591
|
data: responseData
|
|
21590
21592
|
};
|
|
21591
21593
|
}
|
|
21592
|
-
}
|
|
21594
|
+
};
|
|
21595
|
+
http.addResponseInterceptor(baseRespFinder);
|
|
21596
|
+
proxyHttp.addResponseInterceptor(baseRespFinder);
|
|
21593
21597
|
await http.api({
|
|
21594
21598
|
method: "get",
|
|
21595
21599
|
url: "https://mp.weixin.qq.com/cgi-bin/appmsgpublish",
|