Update api/answer.php
This commit is contained in:
@@ -93,5 +93,9 @@ echo json_encode([
|
|||||||
'stats' => [
|
'stats' => [
|
||||||
'wordId' => $wordId,
|
'wordId' => $wordId,
|
||||||
'correct' => $correct ? 1 : 0
|
'correct' => $correct ? 1 : 0
|
||||||
|
],
|
||||||
|
'debug' => [
|
||||||
|
'updatedCorrect' => $data['words'][$i]['correct'] ?? null,
|
||||||
|
'updatedWrong' => $data['words'][$i]['wrong'] ?? null
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
Reference in New Issue
Block a user