This commit is contained in:
陈向学 2024-09-13 17:18:21 +08:00
parent 12ad5f2760
commit dd16e0614f
1 changed files with 6 additions and 4 deletions

View File

@ -230,14 +230,15 @@ public class MyManage : MonoBehaviour
HttpPractiseService getPractiseInfo = new HttpPractiseService();
ResponObject responObject = getPractiseInfo.UploadAnswer(startMode.practiseId, userData.id, answers);
Debug.Log("提交成绩 " + JsonConvert.SerializeObject(responObject));
if (responObject.code == "0")
{
string data = responObject.data.ToString();
Debug.Log("提交练习" + data);
Debug.Log("提交练习成绩成功:" + data);
}
else
{
Debug.LogError(responObject.msg);
Debug.LogError("提交练习成绩失败:" +responObject.msg);
}
}
@ -297,14 +298,15 @@ public class MyManage : MonoBehaviour
Debug.Log(JsonConvert.SerializeObject(answers));
HttpExamService getPractiseInfo = new HttpExamService();
ResponObject responObject = getPractiseInfo.UploadAnswer(startMode.examId, userData.id, answers);
Debug.Log("提交成绩 "+JsonConvert.SerializeObject(responObject));
if (responObject.code == "0")
{
string data = responObject.data.ToString();
Debug.Log("提交考试" + data);
Debug.Log("提交考试成绩成功" + data);
}
else
{
Debug.LogError(responObject.msg);
Debug.LogError("提交考试成绩失败:"+responObject.msg);
}
}