fix: 修复管理员密码为空及添加平台选择提示
修复config.php中管理员密码为空的安全问题,并设置不同权限 在upload_app.php中添加平台选择提示信息以避免混淆 在review_apps.php中优化开发者信息显示逻辑
This commit is contained in:
@@ -117,8 +117,9 @@ if (!($conn instanceof mysqli)) {
|
||||
log_error('数据库连接错误: 连接不是MySQLi实例', __FILE__, __LINE__);
|
||||
$error = '数据库连接错误,请检查配置';
|
||||
} else {
|
||||
$stmt = $conn->prepare("SELECT a.id, a.name, a.description, a.status, a.created_at
|
||||
$stmt = $conn->prepare("SELECT a.id, a.name, a.description, a.status, a.created_at, d.username
|
||||
FROM apps a
|
||||
LEFT JOIN developers d ON a.developer_id = d.id
|
||||
WHERE a.status = 'pending'
|
||||
ORDER BY a.created_at DESC");
|
||||
if (!$stmt) {
|
||||
@@ -252,7 +253,7 @@ if (!($conn instanceof mysqli)) {
|
||||
<?php if (!empty($tagString)): ?>
|
||||
<p class="card-text"><strong>标签:</strong> <?php echo htmlspecialchars($tagString); ?></p>
|
||||
<?php endif; ?>
|
||||
<p class="card-text"><strong>开发者:</strong> <?php echo htmlspecialchars($app['username']); ?></p>
|
||||
<p class="card-text"><strong>开发者:</strong> <?php echo htmlspecialchars($app['username'] ?? '管理员'); ?></p>
|
||||
<p class="card-text"><strong>提交时间:</strong> <?php echo htmlspecialchars($app['created_at']); ?></p>
|
||||
<p class="card-text"><strong>描述:</strong> <?php echo nl2br(htmlspecialchars($app['description'])); ?></p>
|
||||
|
||||
|
||||
@@ -500,6 +500,9 @@ if (!($conn instanceof mysqli)) {
|
||||
<textarea class="form-control" id="age_rating_description" name="age_rating_description" rows="3" placeholder="请说明为何需要此年龄分级"></textarea>
|
||||
<small>当年龄分级为12+或以上时,此项为必填</small>
|
||||
</div>
|
||||
<div class="alert alert-info mb-3">
|
||||
<strong>信息:</strong>我们尝试了开发多选子平台的功能,但是就会导致以前的app会全部显示“未知平台”,如果你是Windows的话,选择Win7以上选项,如果你是Linux的话,选择APP支持平台中的任意一个即可。
|
||||
</div>
|
||||
<div class="form-group mb-3">
|
||||
<label class="form-label">适用平台</label>
|
||||
<div class="form-check">
|
||||
|
||||
Reference in New Issue
Block a user