第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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user