Skip to content

Commit

Permalink
perf: 补充一些判断条件
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Jan 22, 2025
1 parent 4e8a10e commit 2b6afc0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/order/afdian/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@


async def process_order(out_trade_no: str) -> Tuple[Any, str]:
if not out_trade_no:
logger.error(
f"out_trade_no is reuqired: {out_trade_no}"
)
return None, "not an order"

response = await query_order_by_out_trade_no(out_trade_no)
if not response or response.get("ec") != 200:
logger.error(
Expand Down

0 comments on commit 2b6afc0

Please sign in to comment.