修复了存款金额不能正常显示的问题,添加了lastBetTime字段

This commit is contained in:
zayac 2024-04-25 14:24:59 +08:00
parent 71fb626c14
commit 61ac955c2d
5 changed files with 20 additions and 15 deletions

View File

@ -2,7 +2,7 @@
FROM python:3.11
# 将应用代码复制到 /app 目录下
COPY src/change_url /app
COPY . /app
COPY requirements.txt /app/requirements.txt
# 设置工作目录

View File

@ -1,5 +1,5 @@
import uvicorn
from fastapi import FastAPI, Request, Form
from fastapi import FastAPI, Request
from fastapi.responses import HTMLResponse
from fastapi.staticfiles import StaticFiles
from fastapi.templating import Jinja2Templates

File diff suppressed because one or more lines are too long

View File

@ -45,6 +45,7 @@ class MemberList(BaseMember):
class MemberDetail(BaseMember):
venueNetAmountList: list
tags: str
lastBetTime: str
status: Optional[int] = field(default=None)
def get_first_pay_datetime(self) -> datetime:

View File

@ -246,5 +246,5 @@ def get_pay_failed_by_telegram_id(telegram_id: int) -> Optional[str]:
if __name__ == '__main__':
deposit_results = '\n'.join(
[f"用户: `{member.name}`, 首存金额: *{member.deposit}*" for member in
get_latest_deposit_user(get_user_by_username_and_password('zayac', 'password').accounts[0], 1)])
get_latest_deposit_user(get_user_by_username_and_password('zayac', '123456').accounts[2], 1)])
print(deposit_results)