摘要: [HttpGet] public async Task OpenOAuthCallback(string auth_code, string appletId) { try { #region 使用ComponentContainer //获取OAuth... 阅读全文
posted @ 2019-07-30 13:32 SmilePastaLi 阅读(345) 评论(0) 推荐(0)
摘要: public class Startup { public Startup(IConfiguration configuration) { Configuration = configuration; } public IConfiguration Configuration { get; } ... 阅读全文
posted @ 2019-06-24 17:30 SmilePastaLi 阅读(609) 评论(0) 推荐(0)
摘要: 可以自定义截图范围,挺强大的 http://www.cockos.com/licecap/ 阅读全文
posted @ 2019-03-27 15:27 SmilePastaLi 阅读(301) 评论(0) 推荐(0)
摘要: /// /// 单例模式的实现 /// public class Singleton { // 定义一个静态变量来保存类的实例 private static Singleton uniqueInstance; // 定义一个标识确保线程同步 private static readonly obj... 阅读全文
posted @ 2018-12-14 15:30 SmilePastaLi 阅读(147) 评论(0) 推荐(0)
摘要: using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; namespace report.Utils { public class WeChatHelper {... 阅读全文
posted @ 2018-11-23 11:31 SmilePastaLi 阅读(1515) 评论(2) 推荐(1)
该文被密码保护。 阅读全文
posted @ 2018-10-08 10:47 SmilePastaLi 阅读(82) 评论(0) 推荐(0)
摘要: 步骤一、 Nuget Packages安装,使用程序包管理器控制台,安装命令:Install-Package Swashbuckle.AspNetCore -Pre 步骤二、 在Startup 文件中添加配置: 阅读全文
posted @ 2018-08-16 17:11 SmilePastaLi 阅读(158) 评论(0) 推荐(0)
摘要: appsettings.json 文件: 控制器中读取配置文件: 先创建配置文件的节点对象,然后注入 注意: 控制器中读取配置文件,要先在Startup.cs中的ConfigureServices方法中注入 services.Configure<SiteConfig>(Configuration.G 阅读全文
posted @ 2018-08-16 09:46 SmilePastaLi 阅读(950) 评论(0) 推荐(0)
摘要: #region 生成随机数 /// /// /// private static int iCount; /// /// 生成随机数 /// /// public static string GenerateRandomNumber() ... 阅读全文
posted @ 2018-05-09 16:19 SmilePastaLi 阅读(144) 评论(0) 推荐(0)
摘要: jqgrid单元格内容过长 样式处理 1、自动处理为省略号 <style> .ui-jqgrid tr.jqgrow td { text-overflow : ellipsis; } </style> 2、自动换行: <style> .ui-jqgrid tr.jqgrow td { white-s 阅读全文
posted @ 2018-01-30 18:19 SmilePastaLi 阅读(5563) 评论(2) 推荐(0)