第58批续24: PHP端信誉积分(credit_score)接收+管理界面

1. core.php: users表加 credit_score 列 INTEGER DEFAULT 100
2. api/sync.php: syncLogin INSERT加credit_score字段,bindValue默认100
3. api/credit.php(新): 信誉积分API
   - ensureCreditTables建credit_records/credit_rules表+users加列
   - 用户端: submit_good/submit_bad上报, my_score/user_score查积分, my_records查记录
   - 管理员: pending_list/approve/reject/approved_list审批流程, rules/update_rule规则管理
   - approve审批通过更新users.credit_score
4. player.php: 侧边栏加⭐信誉积分入口+renderCredit页面+creditSubmitFlow上报引导
This commit is contained in:
ypsdf1
2026-10-28 14:29:20 +08:00
parent dfd3a6fd92
commit 0bf1cd8248
4 changed files with 332 additions and 1 deletions
+1
View File
@@ -1920,6 +1920,7 @@ function initTables($db, $side = null) {
'last_login_ip' => "TEXT DEFAULT ''",
'frozen' => "INTEGER DEFAULT 0",
'freeze_token' => "TEXT DEFAULT ''",
'credit_score' => "INTEGER DEFAULT 100",
];
foreach ($addCols as $col => $type) {
if (!in_array($col, $userCols)) {