update
This commit is contained in:
parent
f4d9bc7b73
commit
eeebcf7e29
@ -129,9 +129,9 @@ async def notify(notify: NotifyRequest, session: Session = Depends(get_db)):
|
||||
time_type = order['time_type']
|
||||
|
||||
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:
|
||||
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)
|
||||
|
||||
@ -29,7 +29,7 @@ services:
|
||||
cryptoai-api:
|
||||
build: .
|
||||
container_name: cryptoai-api
|
||||
image: cryptoai-api:0.2.9
|
||||
image: cryptoai-api:0.2.10
|
||||
restart: always
|
||||
ports:
|
||||
- "8000:8000"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user