ZhiYeJianKang_PeiXun/Song.Site/Ajax/LogForStudentQuestions.ashx.cs
2025-02-20 15:41:53 +08:00

44 lines
1.2 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WeiSha.Common;
using Song.ServiceInterfaces;
namespace Song.Site.Ajax
{
/// <summary>
/// 学员试题练习的记录
/// </summary>
public class LogForStudentQuestions : IHttpHandler
{
//课程id,章节id试题id试题序号
int couid = WeiSha.Common.Request.QueryString["couid"].Int32 ?? 00;
int olid = WeiSha.Common.Request.QueryString["olid"].Int32 ?? 00;
int qid = WeiSha.Common.Request.QueryString["qid"].Int32 ?? 00;
int index = WeiSha.Common.Request.QueryString["index"].Int32 ?? 00;
//学员id
int acid = WeiSha.Common.Request.QueryString["acid"].Int32 ?? 00;
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
try
{
Business.Do<ILogs>().QuestionUpdate(acid, couid, olid, qid, index);
context.Response.Write("1");
}
catch
{
context.Response.Write("1");
}
}
public bool IsReusable
{
get
{
return false;
}
}
}
}