koishi-plugin-resonance-columba-bot 0.2.0 → 0.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 +1 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -4116,6 +4116,7 @@ async function get_price() {
4116
4116
  const onegraphBuyCombinationsRtNoBargain = calculateOneGraphBuyCombinations(responseData, BotConfig.maxLot, BotConfigNoReturnBargain.returnBargain, BotConfig.prestige, BotConfig.roles, BotConfig.productUnlockStatus);
4117
4117
  output_str = "";
4118
4118
  output_str = output_str + "综合利润往返跑商行情 满抬砍 满声望 满共振 1016货仓\n";
4119
+ min = 0;
4119
4120
  var maxRestock_1 = get_generalProfitIndex(1, onegraphBuyCombinationsGo, onegraphBuyCombinationsRt, onegraphBuyCombinationsRtNoBargain);
4120
4121
  min = maxRestock_1.price > min ? maxRestock_1.price : min;
4121
4122
  var maxRestock_2 = get_generalProfitIndex(2, onegraphBuyCombinationsGo, onegraphBuyCombinationsRt, onegraphBuyCombinationsRtNoBargain);
@@ -4333,8 +4334,6 @@ function apply(ctx, config) {
4333
4334
  } else {
4334
4335
  let needPrice = (+num * sellPrice * 1.2 - 1e7) / (+num * 0.75 * 0.8);
4335
4336
  let needVariation = Math.floor(needPrice / buyPrice * 100);
4336
- console.log(needPrice);
4337
- console.log(needVariation);
4338
4337
  if (needVariation >= 60) {
4339
4338
  outputStr = outputStr + "当前最低沙金 淘金乐园 " + buyVariation + buyTrend_updown + " " + buyPrice + "\n";
4340
4339
  outputStr = outputStr + "当前最高金线 " + sellCity + " " + sellVariation + sellTrend_updown + " 利润:" + price + "\n";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-resonance-columba-bot",
3
3
  "description": "雷索纳斯科伦巴商会市场查询",
4
- "version": "0.2.0",
4
+ "version": "0.2.2",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [