@iflyrpa/actions 1.2.30 → 1.2.31

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 CHANGED
@@ -7659,7 +7659,7 @@ var __webpack_exports__ = {};
7659
7659
  response.resume();
7660
7660
  reject({
7661
7661
  code: 500,
7662
- message: `图片下载失败,状态码: ${response.statusCode}`
7662
+ message: `图片下载失败,状态码: ${response.statusCode} Url:${url}`
7663
7663
  });
7664
7664
  }
7665
7665
  };
@@ -7708,7 +7708,7 @@ var __webpack_exports__ = {};
7708
7708
  };
7709
7709
  reject(customMessage);
7710
7710
  };
7711
- const req = external_node_https_namespaceObject.get(decodeURIComponent(url), handleResponse);
7711
+ const req = external_node_https_namespaceObject.get(url, handleResponse);
7712
7712
  req.setTimeout(10000, ()=>{
7713
7713
  req.destroy();
7714
7714
  reject({
@@ -27453,6 +27453,7 @@ var __webpack_exports__ = {};
27453
27453
  401100025: "该应用不支持此媒资类型",
27454
27454
  401100033: "图片宽高不满足要求",
27455
27455
  20040105: "标题中不可使用表情!",
27456
+ 20040051: "定时时间范围不符合要求!",
27456
27457
  "-6": "文章分类信息错误"
27457
27458
  };
27458
27459
  const mockAction = async (task, params)=>{
@@ -27499,7 +27500,12 @@ var __webpack_exports__ = {};
27499
27500
  url: "https://baijiahao.baidu.com/builder/app/appinfo",
27500
27501
  defaultErrorMsg: "创建草稿失败,请稍后重试。"
27501
27502
  });
27502
- const appId = appIdInfo.data.user.app_id;
27503
+ const appId = appIdInfo.data?.user?.app_id;
27504
+ if (!appId) return {
27505
+ code: 414,
27506
+ message: "创建草稿失败,请稍后重试。",
27507
+ data: ""
27508
+ };
27503
27509
  const uploadImages = async (_images)=>{
27504
27510
  const images = _images.filter((url)=>!!url && "" !== url.trim());
27505
27511
  return await Promise.all(images.map(async (url)=>{
@@ -31268,6 +31274,7 @@ var __webpack_exports__ = {};
31268
31274
  const mock_errnoMap = {
31269
31275
  20004020: "图片上传异常,请重新绑定账号后同步。",
31270
31276
  7115: "正文图片和封面图片推荐jpg、png格式。",
31277
+ 7112: "文章内图片上传失败,请检查文章中的图片后重试。",
31271
31278
  100006: "文章同步异常,请重新绑定账号后重试。",
31272
31279
  3101: [
31273
31280
  "今日头条号发布次数已达上限,请明天再试。",
@@ -31281,7 +31288,8 @@ var __webpack_exports__ = {};
31281
31288
  1050: "图片上传失败,请重试上传。",
31282
31289
  2005: "账号无【申明原创】权限,请关闭申明后重试。",
31283
31290
  100004: "用户未登录或登陆已过期,请重新登陆后重试。",
31284
- 4029: "标题长度应该在2-30字之间,请修改后重试。"
31291
+ 4029: "标题长度应该在2-30字之间,请修改后重试。",
31292
+ 3102: "账号已被禁言无法发布文章,请先保存草稿!"
31285
31293
  };
31286
31294
  const mock_generatorFormData = (data)=>Object.entries(data).map(([key, value])=>{
31287
31295
  const encodedKey = encodeURIComponent(key);
@@ -36052,7 +36060,9 @@ var __webpack_exports__ = {};
36052
36060
  const data = isSuccess ? res.data : {};
36053
36061
  return utils_response(isSuccess ? 0 : 414, message, data);
36054
36062
  };
36055
- var package_namespaceObject = JSON.parse('{"i8":"1.2.30-beta.5"}');
36063
+ var package_namespaceObject = {
36064
+ i8: "1.2.30"
36065
+ };
36056
36066
  const ttConfigDataSchema = classic_schemas_object({
36057
36067
  fansNum: classic_schemas_number(),
36058
36068
  fansNumYesterday: classic_schemas_number().nullable(),