完美了
This commit is contained in:
parent
b2c2835afd
commit
4f543a3144
@ -462,7 +462,7 @@ require_once __DIR__ . '/includes/header.php';
|
||||
<?php
|
||||
$partners = [
|
||||
['name' => 'Binance', 'color' => '#f3ba2f', 'icon' => 'bi-currency-bitcoin'],
|
||||
['name' => 'OKX', 'color' => '#ffffff', 'icon' => 'bi-box-seam'],
|
||||
['name' => 'Bitget', 'color' => '#00d2d2', 'icon' => 'bi-box-seam'],
|
||||
['name' => 'Bybit', 'color' => '#ffb11a', 'icon' => 'bi-activity'],
|
||||
['name' => 'Huobi', 'color' => '#00b5f8', 'icon' => 'bi-globe'],
|
||||
['name' => 'Coinbase', 'color' => '#0052ff', 'icon' => 'bi-shield-shaded'],
|
||||
|
||||
@ -89,20 +89,20 @@ class MailService
|
||||
}
|
||||
|
||||
/**
|
||||
* Send verification code email (OKX Style)
|
||||
* Send verification code email (BYRO Style)
|
||||
*/
|
||||
public static function sendVerificationCode(string $to, string $code, string $type = 'register')
|
||||
{
|
||||
$subject = ($type === 'register' ? '[OKX] Create Account' : '[OKX] Reset Password') . ' - Verification Code: ' . $code;
|
||||
$subject = ($type === 'register' ? '[BYRO] Create Account' : '[BYRO] Reset Password') . ' - Verification Code: ' . $code;
|
||||
|
||||
$title = $type === 'register' ? 'Verify your email' : 'Reset your password';
|
||||
$instruction = $type === 'register' ? 'You are creating an account on OKX.' : 'You are resetting your account password.';
|
||||
$instruction = $type === 'register' ? 'You are creating an account on BYRO.' : 'You are resetting your account password.';
|
||||
$action = $type === 'register' ? 'registration' : 'password reset';
|
||||
|
||||
$html = "
|
||||
<div style=\"font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; max-width: 600px; margin: 0 auto; padding: 0; color: #1e2329; background-color: #fff; border: 1px solid #eaecef; border-radius: 16px; overflow: hidden;\">
|
||||
<div style=\"padding: 32px 40px; background-color: #000; color: #fff;\">
|
||||
<div style=\"font-size: 28px; font-weight: 900; letter-spacing: -1px;\">OKX</div>
|
||||
<div style=\"font-size: 28px; font-weight: 900; letter-spacing: -1px;\">BYRO</div>
|
||||
</div>
|
||||
|
||||
<div style=\"padding: 40px;\">
|
||||
@ -117,14 +117,14 @@ class MailService
|
||||
</div>
|
||||
|
||||
<p style=\"font-size: 14px; line-height: 20px; color: #474d57; margin-bottom: 32px;\">
|
||||
This code is valid for <strong>10 minutes</strong>. For your account security, please do not share this code with anyone, including OKX staff.
|
||||
This code is valid for <strong>10 minutes</strong>. For your account security, please do not share this code with anyone, including BYRO staff.
|
||||
</p>
|
||||
|
||||
<div style=\"background-color: #fff9e6; border-left: 4px solid #f0b90b; padding: 20px; margin-bottom: 32px;\">
|
||||
<h4 style=\"margin: 0 0 8px 0; color: #d49e00; font-size: 14px;\">Safety Warning:</h4>
|
||||
<ul style=\"margin: 0; padding-left: 20px; font-size: 13px; color: #707a8a; line-height: 1.6;\">
|
||||
<li>Never give your password or verification code to anyone.</li>
|
||||
<li>Always check the website URL to ensure you are on the official OKX platform.</li>
|
||||
<li>Always check the website URL to ensure you are on the official BYRO platform.</li>
|
||||
<li>Enable Two-Factor Authentication (2FA) for enhanced security.</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -138,13 +138,13 @@ class MailService
|
||||
<p style=\"font-size: 12px; line-height: 18px; color: #707a8a; margin-bottom: 12px;\">
|
||||
This is an automated message, please do not reply.
|
||||
</p>
|
||||
<div style=\"font-size: 12px; font-weight: 700; color: #000; margin-bottom: 8px;\">OKX Team</div>
|
||||
<div style=\"font-size: 11px; color: #b7bdc6;\">© 2026 OKX. All rights reserved.</div>
|
||||
<div style=\"font-size: 12px; font-weight: 700; color: #000; margin-bottom: 8px;\">BYRO Team</div>
|
||||
<div style=\"font-size: 11px; color: #b7bdc6;\">© 2026 BYRO. All rights reserved.</div>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
|
||||
$text = "{$title}\n\nDear user,\n\n{$instruction} Your verification code is: {$code}\n\nThis code is valid for 10 minutes. For your account security, do not share this code with anyone.\n\nSafety Tips:\n- Never give your password or verification code to anyone.\n- Ensure you are on the official OKX website.\n\nOKX Team";
|
||||
$text = "{$title}\n\nDear user,\n\n{$instruction} Your verification code is: {$code}\n\nThis code is valid for 10 minutes. For your account security, do not share this code with anyone.\n\nSafety Tips:\n- Never give your password or verification code to anyone.\n- Ensure you are on the official BYRO website.\n\nBYRO Team";
|
||||
|
||||
return self::sendMail($to, $subject, $html, $text);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user