Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
修复BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
lswlc33 committed May 24, 2024
1 parent d74b0a0 commit 0d1dc26
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions 贝壳-倒狗.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,15 @@ def check_market_loop():

if not shells_info["is_sold"]:
print("补救流程")
print(shells_info["is_sold"])
shells_info["is_sold"] = sell_shell(
shells_info["tradeId1"], shells_info["sold_quantity"]
)
if shells_info["sold_quantity"] > shells_info["quantity1"]:
if sell_shell(shells_info["tradeId1"], shells_info["quantity1"]):
shells_info["sold_quantity"] = (
shells_info["sold_quantity"] - shells_info["quantity1"]
)
else:
shells_info["is_sold"] = sell_shell(
shells_info["tradeId1"], shells_info["sold_quantity"]
)

elif shells_info["myshells"] >= 300.00:
print("闲置流程")
Expand Down

0 comments on commit 0d1dc26

Please sign in to comment.