|
@@ -30,9 +30,6 @@ func AddExamRecord(er *entity.ExamRecord) *result.Result {
|
|
|
if err != nil {
|
|
|
return result.UNKNOW_ERROR.SetData(err)
|
|
|
}
|
|
|
- fmt.Println("--------------------ADDTOKEN--------------------------------")
|
|
|
- fmt.Printf("ID:%d\n", er.Id)
|
|
|
- fmt.Printf("TOKEN:%s\n", uuId)
|
|
|
return result.SuccessResult(gin.H{
|
|
|
"id": er.Id,
|
|
|
"token": uuId,
|
|
@@ -93,7 +90,6 @@ where er.id = ? and u.id = ? and e.delete_at is null `
|
|
|
av.OwnAnswer = avs[i].OwnAnswer
|
|
|
avs[i] = &av
|
|
|
}
|
|
|
-
|
|
|
return result.SuccessResult(gin.H{
|
|
|
"exam_detail": &t,
|
|
|
"subject": &avs,
|