Skip to content

Commit

Permalink
fix: reward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Feb 11, 2025
1 parent 1639b26 commit ec5bc34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/order/afdian/query_order.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from loguru import logger
from fastapi import APIRouter
from datetime import datetime

from src.database import Bill, Plan, Reward
from .factory import process_order
Expand Down Expand Up @@ -95,7 +96,7 @@ def query_reward(reward_key: str):
"msg": "Success",
"data": {
"cdk": "", # for compatibility with order
"created_at": reward.start_at, # for compatibility with order
"created_at": datetime.now(), # for compatibility with order
"reward_key": reward.reward_key,
"start_at": reward.start_at,
"expired_at": reward.expired_at,
Expand Down

0 comments on commit ec5bc34

Please sign in to comment.