|
|
@@ -40,8 +40,9 @@ async def read_coin(coin_name: str, proxy_type: int = 0):
|
|
|
result = get_coin_data(coin_url, HEADERS, PROXIES, proxy_type)
|
|
|
# 使用HTMLResponse返回居中的HTML内容
|
|
|
html_result = f"""<html>
|
|
|
+ <title>{coin_name}</title>
|
|
|
<body>
|
|
|
- <div style="width: 80%; margin: auto; text-align: left; font-size: 16px; padding: 20px;">
|
|
|
+ <div style="width: 80%; margin: auto; text-align: center; font-size: 18px; padding: 10px;">
|
|
|
{result}
|
|
|
</div>
|
|
|
</body>
|