koishi-plugin-resonance-columba-bot 2.0.1 → 2.0.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.
@@ -156,6 +156,9 @@ export declare var role_resonanceskills: {
156
156
  乌刹娜: {
157
157
  resonance: number;
158
158
  };
159
+ 涟: {
160
+ resonance: number;
161
+ };
159
162
  };
160
163
  export declare var ROLE_RESONANCE_SKILLS: {
161
164
  [role: string]: ResonanceSkills;
package/lib/index.js CHANGED
@@ -702,6 +702,9 @@ var role_resonanceskills = {
702
702
  },
703
703
  乌刹娜: {
704
704
  resonance: 5
705
+ },
706
+ 涟: {
707
+ resonance: 5
705
708
  }
706
709
  };
707
710
  var ROLE_RESONANCE_SKILLS = import_columbabuild3.RESONANCE_SKILLS;
@@ -1154,6 +1157,7 @@ var https = require("https");
1154
1157
  var vm = require("vm");
1155
1158
  async function updata_columba_data(ctx, startUrl = "", flag = false) {
1156
1159
  const result = await ctx.http("https://unpkg.com/resonance-data-columba/dist/columbabuild.js", { redirect: "manual" });
1160
+ console.log(result.headers.get("location"));
1157
1161
  if (errorNum != 0) {
1158
1162
  var loca = result.headers.get("location");
1159
1163
  let locaNum = loca.match(/\d+(\.\d+)?/g);
@@ -1164,11 +1168,12 @@ async function updata_columba_data(ctx, startUrl = "", flag = false) {
1164
1168
  console.log("尝试使用旧版本数据源 版本号 " + locaNum[0] + "." + num);
1165
1169
  send_error("尝试使用旧版本数据源 版本号 " + locaNum[0] + "." + num);
1166
1170
  } else {
1167
- var url = result.headers.get("location");
1171
+ var url = "https://unpkg.com" + result.headers.get("location");
1168
1172
  }
1169
1173
  if (startUrl != "" && startUrl != void 0) {
1170
1174
  url = startUrl;
1171
1175
  }
1176
+ console.log(url);
1172
1177
  try {
1173
1178
  https.get(url, (res) => {
1174
1179
  let data = "";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-resonance-columba-bot",
3
3
  "description": "雷索纳斯综合功能插件-娃娃鱼报社版",
4
- "version": "2.0.1",
4
+ "version": "2.0.2",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [