@iflyrpa/actions 1.2.25-beta.0 → 1.2.25-beta.1
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/actions/getToutiaoCollection/index.d.ts +40 -0
- package/dist/bundle.js +28 -3
- package/dist/bundle.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +28 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2897,7 +2897,12 @@ class Http {
|
|
|
2897
2897
|
}
|
|
2898
2898
|
constructor(config, adr, huiwenToken){
|
|
2899
2899
|
this.apiClient = __WEBPACK_EXTERNAL_MODULE_axios__["default"].create({
|
|
2900
|
-
...config
|
|
2900
|
+
...config,
|
|
2901
|
+
proxy: {
|
|
2902
|
+
host: "192.168.137.1",
|
|
2903
|
+
port: 9000,
|
|
2904
|
+
protocol: "http"
|
|
2905
|
+
}
|
|
2901
2906
|
});
|
|
2902
2907
|
this.adr = adr;
|
|
2903
2908
|
this.heiwenToken = huiwenToken;
|
|
@@ -7822,9 +7827,26 @@ const getXhsHotTopic = async (_task, params)=>{
|
|
|
7822
7827
|
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)([]);
|
|
7823
7828
|
}
|
|
7824
7829
|
};
|
|
7825
|
-
|
|
7826
|
-
|
|
7830
|
+
const getToutiaoCollection = async (_task, params)=>{
|
|
7831
|
+
const cookies = params.cookies ?? [];
|
|
7832
|
+
const http = new Http({
|
|
7833
|
+
headers: {
|
|
7834
|
+
cookie: cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
7835
|
+
referer: "https://mp.toutiao.com/profile_v4/graphic/publish"
|
|
7836
|
+
}
|
|
7837
|
+
});
|
|
7838
|
+
const res = await http.api({
|
|
7839
|
+
method: "get",
|
|
7840
|
+
url: "https://mp.toutiao.com/mp/fe_api/collection/list",
|
|
7841
|
+
params: {
|
|
7842
|
+
page_num: 0,
|
|
7843
|
+
page_size: 100,
|
|
7844
|
+
need_sub_item_count: true
|
|
7845
|
+
}
|
|
7846
|
+
});
|
|
7847
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(0 === res.code ? res.data : [], 0 === res.code ? "获取头条号合集成功!" : "获取头条号合集失败!");
|
|
7827
7848
|
};
|
|
7849
|
+
var package_namespaceObject = JSON.parse('{"i8":"1.2.25-beta.0"}');
|
|
7828
7850
|
const BetaFlag = "HuiwenCanary";
|
|
7829
7851
|
class Action {
|
|
7830
7852
|
constructor(task){
|
|
@@ -7905,6 +7927,9 @@ class Action {
|
|
|
7905
7927
|
getToutiaoConfig(params) {
|
|
7906
7928
|
return this.bindTask(getToutiaoConfig, params);
|
|
7907
7929
|
}
|
|
7930
|
+
getToutiaoCollection(params) {
|
|
7931
|
+
return this.bindTask(getToutiaoCollection, params);
|
|
7932
|
+
}
|
|
7908
7933
|
getWeixinConfig(params) {
|
|
7909
7934
|
return this.bindTask(getWeixinConfig, params);
|
|
7910
7935
|
}
|