This commit is contained in:
aaron 2025-06-13 11:08:36 +08:00
parent f4d9bc7b73
commit eeebcf7e29
2 changed files with 3 additions and 3 deletions

View File

@ -129,9 +129,9 @@ async def notify(notify: NotifyRequest, session: Session = Depends(get_db)):
time_type = order['time_type'] time_type = order['time_type']
if time_type == 1: if time_type == 1:
expire_time = datetime.now() + timedelta(days=30) expire_time = datetime.now().replace(hour=23, minute=59, second=59) + timedelta(days=30)
elif time_type == 2: elif time_type == 2:
expire_time = datetime.now() + timedelta(days=365) expire_time = datetime.now().replace(hour=23, minute=59, second=59) + timedelta(days=365)
#增加用户订阅记录 #增加用户订阅记录
user_subscription_manager = UserSubscriptionManager(session) user_subscription_manager = UserSubscriptionManager(session)

View File

@ -29,7 +29,7 @@ services:
cryptoai-api: cryptoai-api:
build: . build: .
container_name: cryptoai-api container_name: cryptoai-api
image: cryptoai-api:0.2.9 image: cryptoai-api:0.2.10
restart: always restart: always
ports: ports:
- "8000:8000" - "8000:8000"