PHP Implementation Complete Callback Handler CopyCopy Code -1, 'error' => 'Invalid JSON 无效JSON' ])); } $game_uid = $data['game_uid'] ?? ''; $game_round = $data['game_round'] ?? ''; $member_account = $data['member_account'] ?? ''; $bet_amount = (float)($data['bet_amount'] ?? 0); $win_amount = (float)($data['win_amount'] ?? 0); $round_time = $data['timestamp'] ?? ''; $credit = max(0, $bet_amount - $win_amount); // Credit 积分 = bet - win, 最少0 echo json_encode([ 'credit_amount' => $credit, 'timestamp' => round(microtime(true) * 1000) ]); ?> Response Example Success Response { "credit_amount": 3, "timestamp": 1696329392000 }