code/Athena0.0.1/Web/Controllers/baseController.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Athena.bll;
using Athena.common.Util;
using System.Text;
using Athena.common.Util.Web;
//项目名称:Athena标准开发框架
//版本:0.0.1
//开发团队成员:周庆 王露 张婷婷 陈祚松 张梦丽 艾美珍 胡凯雨 陈兰兰 夏萍萍 康文洋 易传佳
//模块及代码页功能描述:控制器基类(周庆)
//最后修改时间:2018-01-26
//修改日志:
//2017-04-11 添加此类(周庆)
//2018-01-26 添加相关返回信息处理方法(周庆)
namespace Web
{
public class baseController:Controller
{
public virtual void view()
{
}
protected HttpContextBase ctx = null;
protected HttpContext hctx = null;//http上下文对象
protected AccountsPrincipal acctx = null;//当前用户上下文对象
protected static VelocityHelper tp = new VelocityHelper(@"~/Views");//模板静态对象
protected override IAsyncResult BeginExecute(System.Web.Routing.RequestContext requestContext, AsyncCallback callback, object state)
{
if (requestContext.HttpContext != null)
{
this.ctx = requestContext.HttpContext;//获取http内容上下文}
}
return base.BeginExecute(requestContext, callback, state);
}
/// <summary>
///
/// </summary>
/// <param name="context"></param>
/// <param name="msg"></param>
/// <param name="flag"></param>
protected static void WriteBackHtml(HttpContextBase context, string msg, bool flag)
{
string success = "true";
if (!flag)
{
success = "false";
}
Dictionary<string, string> result = new Dictionary<string, string>();
result.Add("success", success);
result.Add("msg", msg);
string strJson = Athena.common.Util.Json.ToJson(result);
writeJsonBack(context, strJson);
}
后面还有 134 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
