随笔分类 -  C#

摘要:/// <summary> /// URL编码 /// </summary> /// <param name="value">The value to Url encode</param> /// <returns>Returns a Url encoded string</returns> pub 阅读全文
posted @ 2021-02-02 17:55 春夏秋冬的千山万水 阅读(65) 评论(0) 推荐(0)
摘要:/// <summary> /// 生成验证码的类 /// </summary> public class ValidateCode { public ValidateCode() { } /// <summary> /// 验证码的最大长度 /// </summary> public int Ma 阅读全文
posted @ 2020-12-07 17:28 春夏秋冬的千山万水 阅读(82) 评论(0) 推荐(0)
摘要:/// <summary> /// 正则表达式验证类 /// </summary> public static class RegexHelper { /// <summary> /// 是否为邮箱地址 /// </summary> /// <param name="str"></param> // 阅读全文
posted @ 2020-12-07 17:26 春夏秋冬的千山万水 阅读(104) 评论(0) 推荐(0)
摘要:/// <summary> /// 枚举帮助类 /// </summary> public static class EnumHelper { /// <summary> /// 获取枚举注释 /// </summary> /// <typeparam name="T">枚举类型</typepara 阅读全文
posted @ 2020-12-07 17:22 春夏秋冬的千山万水 阅读(123) 评论(1) 推荐(0)
摘要:public class ComHelper { /// <summary> /// 根据身份证号获取生日 /// </summary> /// <param name="personalId"></param> /// <returns></returns> public static strin 阅读全文
posted @ 2020-12-07 17:21 春夏秋冬的千山万水 阅读(87) 评论(0) 推荐(0)
摘要:public static class StringHelper { /// <summary> /// 返回缩略图路径 /// </summary> /// <param name="filePath">原图路径</param> /// <param name="width">缩略图宽</para 阅读全文
posted @ 2020-11-12 14:37 春夏秋冬的千山万水 阅读(99) 评论(0) 推荐(0)
摘要:/// <summary> /// 小程序秘钥 /// </summary> /// <param name="wxLogin"></param> /// <returns></returns> [AllowUser] [HttpPost] public ResultResponse<bool> G 阅读全文
posted @ 2020-11-12 13:55 春夏秋冬的千山万水 阅读(368) 评论(0) 推荐(0)
摘要:public class WxHelper { //微信小程序 private static string _appid = ConfigurationManager.AppSettings["wxAPPID"]; private static string _appSecret = Configu 阅读全文
posted @ 2020-11-12 13:49 春夏秋冬的千山万水 阅读(128) 评论(0) 推荐(0)
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>拍照2</title> </head> <body> <button id="btnDoCapture">拍照</button> <br /> <video i 阅读全文
posted @ 2020-11-12 12:02 春夏秋冬的千山万水 阅读(229) 评论(0) 推荐(0)
摘要:public ResultResponse<string> CertificateImg(int type) { ResultResponse<string> ret = new ResultResponse<string>(); if (type <= 0) { ret.ErrorMsg = "参 阅读全文
posted @ 2020-08-25 13:51 春夏秋冬的千山万水 阅读(184) 评论(0) 推荐(0)
摘要:微信的c#demo直接打开是framework2.0,项目右键,属性,改为4.0就好了 阅读全文
posted @ 2020-08-24 16:32 春夏秋冬的千山万水 阅读(364) 评论(0) 推荐(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 阅读全文
posted @ 2020-08-20 14:24 春夏秋冬的千山万水 阅读(1029) 评论(0) 推荐(0)