feat(应用审核): 添加开发者邮箱字段并实现审核结果邮件通知

- 在apps表中添加developer_email字段用于存储开发者邮箱
- 修改upload_app.php以获取并存储开发者邮箱
- 在review_apps.php中实现审核结果邮件通知功能
- 为PHPMailer添加UTF-8字符集设置确保邮件内容正确显示
This commit is contained in:
2025-07-08 20:01:30 +08:00
parent 9efa8fff7c
commit 10ca4b517b
4 changed files with 77 additions and 5 deletions

View File

@@ -147,6 +147,7 @@ log_error('OpenSSL扩展状态: ' . (extension_loaded('openssl') ? '已启用' :
$mail->SMTPSecure = defined('SMTP_ENCRYPTION') ? SMTP_ENCRYPTION : 'tls'; // Ensure SMTP_ENCRYPTION is defined in config.php
$mail->AuthType = 'PLAIN'; // 尝试使用PLAIN认证方式
$mail->Port = defined('SMTP_PORT') ? SMTP_PORT : 587;
$mail->CharSet = 'UTF-8';
$mail->setFrom(defined('SMTP_FROM_EMAIL') ? SMTP_FROM_EMAIL : 'noreply@example.com', defined('SMTP_FROM_NAME') ? SMTP_FROM_NAME : 'App Store'); // Ensure SMTP_FROM_EMAIL is defined in config.php
$mail->addAddress($email, $username);