摘要: 一、通过Http请求(不通过过滤器) public static UserDTO GetAuthInfo() { var cur = HttpContext.Current; var account= cur.Request.Headers.GetValues(Consts.HTTP_HEADER_ 阅读全文
posted @ 2016-02-21 15:49 徐航 阅读(855) 评论(0) 推荐(0) 编辑
摘要: public class WebApiControllerSelector : IHttpControllerSelector { private const string NamespaceKey = "namespace"; private const string ControllerKey 阅读全文
posted @ 2016-02-21 15:31 徐航 阅读(1595) 评论(0) 推荐(0) 编辑
摘要: public class OfficeHelper { /// <summary> /// word转成html /// </summary> /// <param name="path"></param> public static string WordToHtml(string path) { 阅读全文
posted @ 2016-02-21 15:25 徐航 阅读(1166) 评论(0) 推荐(0) 编辑
摘要: public static class PageHelper { /// <summary> /// 按页码分页 /// </summary> /// <param name="objects">要分页的数据集合</param> /// <param name="pageIndex">页码</par 阅读全文
posted @ 2016-02-21 15:23 徐航 阅读(861) 评论(0) 推荐(0) 编辑
摘要: public class ImageHelper { /// <summary> /// 图片转换成字节流 /// </summary> /// <param name="img">要转换的Image对象</param> /// <returns>转换后返回的字节流</returns> public 阅读全文
posted @ 2016-02-21 15:19 徐航 阅读(1278) 评论(0) 推荐(1) 编辑
摘要: public class JPushClient:BaseHttpClient { private String appKey; private String masterSecret; public JPushClient() { this.appKey = BaseHelper.GetValue 阅读全文
posted @ 2016-02-21 15:18 徐航 阅读(1299) 评论(0) 推荐(0) 编辑
摘要: public class RcHttpClient:BaseHttpClient { private String appKey; private String appSecret; public RcHttpClient() { this.appKey = BaseHelper.GetValue( 阅读全文
posted @ 2016-02-21 15:16 徐航 阅读(1861) 评论(0) 推荐(0) 编辑
摘要: public class IpHttpClient:BaseHttpClient { private String appKey; private const string HOST_PATH = "http://apis.baidu.com/apistore/iplookupservice/ipl 阅读全文
posted @ 2016-02-21 15:13 徐航 阅读(1400) 评论(0) 推荐(0) 编辑
摘要: public class BaseHttpClient { protected string contentType; public BaseHttpClient() { this.contentType = "application/json"; } protected const int RES 阅读全文
posted @ 2016-02-21 15:12 徐航 阅读(2519) 评论(0) 推荐(0) 编辑
摘要: public class Mail { private string mailkey; private string mailSecret; public string mailFrom; public Mail() { this.mailkey = BaseHelper.GetValue("Mai 阅读全文
posted @ 2016-02-21 15:07 徐航 阅读(830) 评论(0) 推荐(0) 编辑
摘要: public class WebApi { /// <summary> /// 成功后的输出 /// </summary> /// <param name="data"></param> /// <returns></returns> public static ResultDTO Success( 阅读全文
posted @ 2016-02-21 15:06 徐航 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 兼容性问题: 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 阅读全文
posted @ 2016-02-21 14:55 徐航 阅读(238) 评论(0) 推荐(0) 编辑