第58批续29:PHP审批数据传Java+信誉积分即时同步通知
1. credit.php 新增 creditNotifyJavaSync() 函数,approve/reject/admin_adjust_score 成功后写入 sync_requests 标记通知Java立即拉取 2. admin.php adminApproveReset/adminRejectReset 成功后调用 notifyJavaPluginImmediatePull() 通知Java同步
This commit is contained in:
@@ -1911,6 +1911,8 @@ function adminApproveReset() {
|
||||
$stmt->bindValue(':th', $tempHash);
|
||||
$stmt->bindValue(':te', $tempExpire);
|
||||
$stmt->execute();
|
||||
// ★ 第58批续29-问题2:审批通过后通知Java立即同步
|
||||
notifyJavaPluginImmediatePull();
|
||||
exit(json_encode(['success' => true, 'data' => ['temp_password' => $tempPassword]], JSON_UNESCAPED_UNICODE));
|
||||
} catch (Exception $e) {
|
||||
@error_log('[Function] Error: ' . $e->getMessage());
|
||||
@@ -1928,6 +1930,8 @@ function adminRejectReset() {
|
||||
$stmt->bindValue(':t', time(), SQLITE3_INTEGER);
|
||||
$stmt->bindValue(':id', $reqId, SQLITE3_INTEGER);
|
||||
$stmt->execute();
|
||||
// ★ 第58批续29-问题2:审批驳回后通知Java立即同步
|
||||
notifyJavaPluginImmediatePull();
|
||||
} catch (Exception $e) {}
|
||||
exit(json_encode(['success' => true, 'message' => 'OK'], JSON_UNESCAPED_UNICODE));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user