public void ProcessRequest(HttpContext context) { #region 检查是否登录 currentUserInfo = bllWebsiteDomainInfo.GetCurrentUserInfo(); if (currentUserInfo == null) { resp.Msg = "您还未登录"; context.Response.Write(Common.JSONHelper.ObjectToJson(resp)); return; } websiteOwner = bllWebsiteDomainInfo.WebsiteOwner; #endregion OssSign ossSign = new OssSign(); try { ossSign = OssHelper.BuildSign(OssHelper.GetBucket(websiteOwner), OssHelper.GetBaseDir(websiteOwner), currentUserInfo.UserID, context.Request["fd"], null); } catch (Exception ex) { resp.Msg = ex.Message; context.Response.Write(Common.JSONHelper.ObjectToJson(resp)); return; } resp.IsSuccess = true; resp.Result = ossSign; context.Response.Write(Common.JSONHelper.ObjectToJson(resp)); return; }