摘要:
一、通过Http请求(不通过过滤器) public static UserDTO GetAuthInfo() { var cur = HttpContext.Current; var account= cur.Request.Headers.GetValues(Consts.HTTP_HEADER_ 阅读全文
摘要:
public class WebApiControllerSelector : IHttpControllerSelector { private const string NamespaceKey = "namespace"; private const string ControllerKey 阅读全文
摘要:
public class OfficeHelper { /// <summary> /// word转成html /// </summary> /// <param name="path"></param> public static string WordToHtml(string path) { 阅读全文
摘要:
public static class PageHelper { /// <summary> /// 按页码分页 /// </summary> /// <param name="objects">要分页的数据集合</param> /// <param name="pageIndex">页码</par 阅读全文
摘要:
public class ImageHelper { /// <summary> /// 图片转换成字节流 /// </summary> /// <param name="img">要转换的Image对象</param> /// <returns>转换后返回的字节流</returns> public 阅读全文
摘要:
public class JPushClient:BaseHttpClient { private String appKey; private String masterSecret; public JPushClient() { this.appKey = BaseHelper.GetValue 阅读全文
摘要:
public class RcHttpClient:BaseHttpClient { private String appKey; private String appSecret; public RcHttpClient() { this.appKey = BaseHelper.GetValue( 阅读全文
摘要:
public class IpHttpClient:BaseHttpClient { private String appKey; private const string HOST_PATH = "http://apis.baidu.com/apistore/iplookupservice/ipl 阅读全文
摘要:
public class BaseHttpClient { protected string contentType; public BaseHttpClient() { this.contentType = "application/json"; } protected const int RES 阅读全文
摘要:
public class Mail { private string mailkey; private string mailSecret; public string mailFrom; public Mail() { this.mailkey = BaseHelper.GetValue("Mai 阅读全文
摘要:
public class WebApi { /// <summary> /// 成功后的输出 /// </summary> /// <param name="data"></param> /// <returns></returns> public static ResultDTO Success( 阅读全文
摘要:
兼容性问题: iOS 5.0- 的Date构造函数不支持规范标准中定义的YYYY-MM-DD格式,如 new Date('2013-11-11') 是 Invalid Date, 但支持YYYY/MM/DD格式,可用 new Date('2013/11/11')IOS(7.1.1版本)使用webap 阅读全文