修复不能查询到首存金额的问题,暂时不用报流水
This commit is contained in:
parent
61ac955c2d
commit
5f5ca320dd
@ -151,27 +151,31 @@ async def async_get_latest_deposit_user(account: Account, count: int):
|
||||
return details
|
||||
|
||||
|
||||
# 获取当日注册用户的存款记录
|
||||
def get_pay_record_list(account: Account, date: str) -> Dict[str, List[str]]:
|
||||
logger.info(f'Getting pay record list for account: {account.username} and date: {date}')
|
||||
_names = {'name': account.username, 'names': []}
|
||||
params = {
|
||||
"pageNum": 1,
|
||||
"pageSize": 100,
|
||||
"registerSort": 1,
|
||||
"drawSort": -1,
|
||||
"depositSort": -1,
|
||||
"lastLoginTimeSort": -1,
|
||||
"name": "",
|
||||
"minPay": None,
|
||||
"maxPay": None,
|
||||
"startDate": get_first_day_month(),
|
||||
"registerStartDate": date,
|
||||
"drawSort": -1,
|
||||
"endDate": date,
|
||||
"registerEndDate": date,
|
||||
"firstPayStartTime": "",
|
||||
"firstPayEndTime": "",
|
||||
"isBet": "0",
|
||||
"tagsFlag": "1"
|
||||
"firstPayStartTime": "",
|
||||
"isBet": "",
|
||||
"isRest": False,
|
||||
"lastLoginTimeSort": -1,
|
||||
"maxPay": None,
|
||||
"minPay": None,
|
||||
"name": "",
|
||||
"pageNum": 1,
|
||||
"pageSize": 15,
|
||||
"registerEndDate": date,
|
||||
"registerSort": -1,
|
||||
"registerStartDate": date,
|
||||
"startDate": get_first_day_month(),
|
||||
"status": -1,
|
||||
"tagsFlag": "1",
|
||||
"tagsIds": []
|
||||
}
|
||||
member_list = get_member_list(account, params)
|
||||
if member_list is not None and len(member_list) > 0:
|
||||
@ -246,5 +250,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', '123456').accounts[2], 1)])
|
||||
get_pay_record_list(get_user_by_username_and_password('zayac', '123456').accounts[2], "2024-04-23")])
|
||||
print(deposit_results)
|
||||
|
@ -110,7 +110,8 @@ def count_by_user(user: User, date: str):
|
||||
def text_count_by_user(user: User, date: str) -> str:
|
||||
visual_list = count_by_user(user, date)
|
||||
text = '\n\n'.join(
|
||||
f'{result.agentName}\n注册:{result.isNew}\n首存:{result.firstCount}\n日活:{int(result.countBets)}\n流水:{int(result.bets)}'
|
||||
# f'{result.agentName}\n注册:{result.isNew}\n首存:{result.firstCount}\n日活:{int(result.countBets)}\n流水:{int(result.bets)}'
|
||||
f'{result.agentName}\n注册:{result.isNew}\n首存:{result.firstCount}\n日活:{int(result.countBets)}'
|
||||
for result in visual_list
|
||||
)
|
||||
logger.info(f'Generated text: {text}')
|
||||
|
Loading…
Reference in New Issue
Block a user