Skip to content

Commit 067382d

Browse files
committed
fix some bug.
1 parent 3d09df8 commit 067382d

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

StarSharksTool/AccountManagement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ private void AccountManagement_Resize(object sender, EventArgs e)
671671
// Width - 29;
672672
// Height - 154;
673673
flowLayoutPanel1.Width = this.Width - 29;
674-
flowLayoutPanel1.Height = this.Height - 124;
674+
flowLayoutPanel1.Height = this.Height - 164;
675675
}
676676
}
677677
}

StarSharksTool/BatchRentPage.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

StarSharksTool/BatchRentPage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ private async Task RentShark(int sharkId, int maxPrice, decimal gasPrice = 6)
328328
}
329329
else
330330
{
331-
RentHistory[(sharkId, maxPrice)] = $"没租到|{resp.Item2}";
331+
RentHistory[(sharkId, maxPrice)] = $"没租到|{(resp.Item2.Equals(string.Empty) ? "扣手续费" : resp.Item2)}";
332332
}
333333
}
334334
catch (Exception e)

StarSharksTool/Services/Service.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ internal async static Task<MarketRentResponseModel> GetMarketplace(int maxPrice,
145145
req.Morale = new List<int> { 1, 100 + r.Next(1, 50) };
146146
req.Hp = new List<int> { 1, 100 + r.Next(1, 50) };
147147
req.Speed = new List<int> { 1, 100 + r.Next(1, 50) };
148-
req.RentExceptGain = new List<int> { 1, 13 + step + maxPrice };
148+
req.RentExceptGain = new List<int> { maxPrice, 13 + step };
149149
req.Star = level;
150150

151151
if (step % 2 == 0)
@@ -174,7 +174,7 @@ internal async static Task<MarketRentResponseModel> GetMarketplace(int maxPrice,
174174
responseModel.Data.Sharks = responseModel.Data.Sharks.Where(c =>
175175
{
176176
var price = (int)double.Parse(c.Sheet.RentExceptGain);
177-
return maxPrice >= price;
177+
return maxPrice == price;
178178
}).ToList();
179179
}
180180
return responseModel;

StarSharksTool/SharkManagement.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ private async void ShowSharkGroup(object sender, EventArgs e)
181181
private void ListBoxMouseDown(object sender, MouseEventArgs e)
182182
{
183183
var box = sender as ListBox;
184+
if (box.Items.Count == 0)
185+
{
186+
return;
187+
}
184188
box.DoDragDrop(box.Items[box.SelectedIndex].ToString(), DragDropEffects.Move);
185189
}
186190

0 commit comments

Comments
 (0)