s1
This commit is contained in:
@@ -216,7 +216,7 @@ function submitUserData(drawingZone) {
|
||||
};
|
||||
|
||||
// First API call
|
||||
fetch(`https://api.teachertrainingkolkata.in/api/aiEvaluateImageToStar`, {
|
||||
fetch(`https://ai-image-api.cs1.hz.siliconpin.com/bs_drawing`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
@@ -230,9 +230,10 @@ function submitUserData(drawingZone) {
|
||||
return response.json();
|
||||
})
|
||||
.then(data => {
|
||||
console.log('response from', data)
|
||||
setTimeout(() => {
|
||||
if (data && data.message === "Game data saved successfully") {
|
||||
let starValue = data.data.gameStar; // Ensure starValue is available
|
||||
let starValue = data.gameStar; // Ensure starValue is available
|
||||
|
||||
let feedbackMessage = '';
|
||||
if (starValue >= 1 && starValue <= 3) {
|
||||
|
||||
0
src/pages/test.astro
Normal file
0
src/pages/test.astro
Normal file
Reference in New Issue
Block a user