koishi-plugin-resonance-columba-bot 1.2.0 → 1.2.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.
Files changed (2) hide show
  1. package/lib/index.js +6 -3
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -1247,7 +1247,7 @@ function get_generalProfitIndex(maxRestock, onegraphBuyCombinationsGo, onegraphB
1247
1247
  "toCity": topProfitsNoReturnBargain["byGeneralProfitIndex"]["goAndReturn"][0]["toCity"],
1248
1248
  "toCityRestock": topProfitsNoReturnBargain["byGeneralProfitIndex"]["goAndReturn"][0]["reco"]["goAndReturn"][1]["restock"],
1249
1249
  "generalProfitIndex": topProfitsNoReturnBargain["byGeneralProfitIndex"]["goAndReturn"][0]["generalProfitIndex"],
1250
- "Bargain": "回程不抬砍"
1250
+ "Bargain": "全抬砍"
1251
1251
  };
1252
1252
  let low_top_goAndNoReturnBargain = {
1253
1253
  "maxRestock": maxRestock,
@@ -1267,7 +1267,7 @@ function get_generalProfitIndex(maxRestock, onegraphBuyCombinationsGo, onegraphB
1267
1267
  "toCity": topProfits["byGeneralProfitIndex"]["goAndReturn"][low]["toCity"],
1268
1268
  "toCityRestock": topProfits["byGeneralProfitIndex"]["goAndReturn"][low]["reco"]["goAndReturn"][1]["restock"],
1269
1269
  "generalProfitIndex": topProfits["byGeneralProfitIndex"]["goAndReturn"][low]["generalProfitIndex"],
1270
- "Bargain": "回程不抬砍"
1270
+ "Bargain": "全抬砍"
1271
1271
  };
1272
1272
  break;
1273
1273
  }
@@ -1482,7 +1482,10 @@ async function get_price() {
1482
1482
  var trend_updown = responseData[Item]["sell"][ItemSendList[qqTeam][Item]["city"][i]]["trend"] === "up" ? "↑" : "↓";
1483
1483
  try {
1484
1484
  if (ItemSendList[qqTeam][Item]["send"] == true)
1485
- ctx_send.bots["onebot:1479981061"].sendMessage(qqTeam, (0, import_koishi.h)("at", { type: "all" }) + ItemSendList[qqTeam][Item]["city"][i] + " " + Item + "出售 " + responseData[Item][ItemSendList[qqTeam][Item]["type"]][ItemSendList[qqTeam][Item]["city"][i]]["variation"] + "%" + trend_updown);
1485
+ if (ItemSendList[qqTeam][Item]["variation"][i] <= 120 && responseData[Item][ItemSendList[qqTeam][Item]["type"]][ItemSendList[qqTeam][Item]["city"][i]]["variation"] == 120 || ItemSendList[qqTeam][Item]["variation"][i] > 120 && responseData[Item][ItemSendList[qqTeam][Item]["type"]][ItemSendList[qqTeam][Item]["city"][i]]["variation"] >= ItemSendList[qqTeam][Item]["variation"][i])
1486
+ ctx_send.bots["onebot:1479981061"].sendMessage(qqTeam, (0, import_koishi.h)("at", { type: "all" }) + ItemSendList[qqTeam][Item]["city"][i] + " " + Item + "出售 " + responseData[Item][ItemSendList[qqTeam][Item]["type"]][ItemSendList[qqTeam][Item]["city"][i]]["variation"] + "%" + trend_updown);
1487
+ else
1488
+ ctx_send.bots["onebot:1479981061"].sendMessage(qqTeam, ItemSendList[qqTeam][Item]["city"][i] + " " + Item + "出售 " + responseData[Item][ItemSendList[qqTeam][Item]["type"]][ItemSendList[qqTeam][Item]["city"][i]]["variation"] + "%" + trend_updown);
1486
1489
  else
1487
1490
  ctx_send.bots["onebot:1479981061"].sendMessage(qqTeam, ItemSendList[qqTeam][Item]["city"][i] + " " + Item + "出售 " + responseData[Item][ItemSendList[qqTeam][Item]["type"]][ItemSendList[qqTeam][Item]["city"][i]]["variation"] + "%" + trend_updown);
1488
1491
  } catch {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-resonance-columba-bot",
3
3
  "description": "雷索纳斯科伦巴商会市场查询",
4
- "version": "1.2.0",
4
+ "version": "1.2.2",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -20,6 +20,6 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "axios": "^1.7.7",
23
- "resonance-data-columba": "^1.2.148"
23
+ "resonance-data-columba": "^1.3.3"
24
24
  }
25
25
  }