Fix: rebase code - app highest record
This commit is contained in:
@@ -109,7 +109,7 @@ function get_high_score_list($maestro_id, $player_id, $appList) {
|
||||
$stmt = $db_conn->prepare($query);
|
||||
$stmt->bind_param('iii', $app_id_list, $maestro_id, $player_id);
|
||||
$stmt->execute();
|
||||
$stmt->bind_result($highest_record);
|
||||
$stmt->bind_result($app_highest_record);
|
||||
|
||||
$returnValue = $stmt->fetch();
|
||||
$stmt->close();
|
||||
@@ -120,10 +120,10 @@ function get_high_score_list($maestro_id, $player_id, $appList) {
|
||||
// $row_array['maestro_id'] = $maestro_id;
|
||||
// $row_array['player_id'] = $player_id;
|
||||
$row_array['AppID'] = $app_id_list;
|
||||
if($highest_record === NULL)
|
||||
if($app_highest_record === NULL)
|
||||
$row_array['AppHighestRecord'] = 0;
|
||||
else
|
||||
$row_array['AppHighestRecord'] = $highest_record;
|
||||
$row_array['AppHighestRecord'] = $app_highest_record;
|
||||
|
||||
array_push($return_array, $row_array);
|
||||
}
|
||||
|
||||
@@ -106,15 +106,10 @@ function get_high_score_list($maestro_id, $player_id, $appList) {
|
||||
INNER JOIN app_highest_record AS AHR
|
||||
ON A.AppID = ? AND A.AppID = AHR.AppID AND AHR.MaestroID = ? AND AHR.PlayerID = ?
|
||||
ORDER BY A.AppID ASC";
|
||||
// SELECT MAX(BR.AppHighestRecord)
|
||||
// FROM app AS A
|
||||
// INNER JOIN best_record AS BR
|
||||
// ON A.AppID = ? AND A.AppID = BR.AppID AND BR.MaestroID = ? AND BR.PlayerID = ?
|
||||
// ORDER BY A.AppID ASC";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
$stmt->bind_param('iii', $app_id_list, $maestro_id, $player_id);
|
||||
$stmt->execute();
|
||||
$stmt->bind_result($highest_record);
|
||||
$stmt->bind_result($app_highest_record);
|
||||
|
||||
$returnValue = $stmt->fetch();
|
||||
$stmt->close();
|
||||
@@ -125,10 +120,10 @@ function get_high_score_list($maestro_id, $player_id, $appList) {
|
||||
// $row_array['maestro_id'] = $maestro_id;
|
||||
// $row_array['player_id'] = $player_id;
|
||||
$row_array['AppID'] = $app_id_list;
|
||||
if($highest_record === NULL)
|
||||
if($app_highest_record === NULL)
|
||||
$row_array['AppHighestRecord'] = 0;
|
||||
else
|
||||
$row_array['AppHighestRecord'] = $highest_record;
|
||||
$row_array['AppHighestRecord'] = $app_highest_record;
|
||||
|
||||
array_push($return_array, $row_array);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user