随笔分类 - C#
摘要:/// <summary> /// URL编码 /// </summary> /// <param name="value">The value to Url encode</param> /// <returns>Returns a Url encoded string</returns> pub
阅读全文
摘要:/// <summary> /// 生成验证码的类 /// </summary> public class ValidateCode { public ValidateCode() { } /// <summary> /// 验证码的最大长度 /// </summary> public int Ma
阅读全文
摘要:/// <summary> /// 正则表达式验证类 /// </summary> public static class RegexHelper { /// <summary> /// 是否为邮箱地址 /// </summary> /// <param name="str"></param> //
阅读全文
摘要:/// <summary> /// 枚举帮助类 /// </summary> public static class EnumHelper { /// <summary> /// 获取枚举注释 /// </summary> /// <typeparam name="T">枚举类型</typepara
阅读全文
摘要:public class ComHelper { /// <summary> /// 根据身份证号获取生日 /// </summary> /// <param name="personalId"></param> /// <returns></returns> public static strin
阅读全文
摘要:public static class StringHelper { /// <summary> /// 返回缩略图路径 /// </summary> /// <param name="filePath">原图路径</param> /// <param name="width">缩略图宽</para
阅读全文
摘要:/// <summary> /// 小程序秘钥 /// </summary> /// <param name="wxLogin"></param> /// <returns></returns> [AllowUser] [HttpPost] public ResultResponse<bool> G
阅读全文
摘要:public class WxHelper { //微信小程序 private static string _appid = ConfigurationManager.AppSettings["wxAPPID"]; private static string _appSecret = Configu
阅读全文
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>拍照2</title> </head> <body> <button id="btnDoCapture">拍照</button> <br /> <video i
阅读全文
摘要:public ResultResponse<string> CertificateImg(int type) { ResultResponse<string> ret = new ResultResponse<string>(); if (type <= 0) { ret.ErrorMsg = "参
阅读全文
摘要:微信的c#demo直接打开是framework2.0,项目右键,属性,改为4.0就好了
阅读全文
摘要:1 using System; 2 using System.Security.Cryptography; 3 using System.Text; 4 5 namespace Wechat 6 { 7 public static class Security 8 { 9 public static
阅读全文

浙公网安备 33010602011771号