摘要: ASP.NET Core Kestrel部署HTTPS(阿里云ssl证书) 1.阿里云下载IIS证书(pfx),放到项目根目录下 2、改代码 public class Program { public static void Main(string[] args) { CreateWebHostBu 阅读全文
posted @ 2022-03-14 20:30 中国结 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 推送消息 c# .netcore3.1 unipush(个推)前后端开发笔记 一、前端: 1、获取cid,在APP登录页面加入如下代码,保存到数据库,以备服务端调用 this.mycid=plus.push.getClientInfo().clientid; 2、在app.vue中的onLaunch 阅读全文
posted @ 2022-03-14 00:05 中国结 阅读(1070) 评论(0) 推荐(0) 编辑
摘要: 1.下载 下载apache apollo apache-apollo-1.7.1-windows-istro.zip http://activemq.apache.org/apollo/download.html 2.解压解压apollo,假设为c:/apache-apollo-1.7.1 3.生成 阅读全文
posted @ 2021-11-14 10:20 中国结 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 经纬度转换 C#类 public class GCJ2WGSUtils { // 输入GCJ经纬度 转WGS纬度 public static double WGSLat(double lat, double lon) { double PI = 3.14159265358979324;// 圆周率 阅读全文
posted @ 2021-11-03 00:56 中国结 阅读(591) 评论(0) 推荐(0) 编辑
摘要: SVG地图 经纬度 转换 相关文章及知识点 JS经纬度坐标转换(未测试,只是转载,学习用) var GPS = { PI : 3.14159265358979324, x_pi : 3.14159265358979324 * 3000.0 / 180.0, delta : function (lat 阅读全文
posted @ 2021-11-03 00:45 中国结 阅读(333) 评论(0) 推荐(0) 编辑
摘要: C# Lambda 1、排序 OrderByDescending()降序 OrderBy升序 List<myParam> mylist = List.OrderByDescending(p => p.time).ToList(); 2、取n条连续记录 Skip(2):跳过前面2条记录 Take(5) 阅读全文
posted @ 2021-08-27 11:28 中国结 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 动态类型dynamic,将JSON字符串转成对象 //动态类型dynamic,将JSON字符串转成对象 var myJson = "{\"name\":\"小明\",\"address\":\"威海\"}";//json字符串 var myObj = JsonConvert.DeserializeO 阅读全文
posted @ 2021-07-01 10:33 中国结 阅读(1513) 评论(0) 推荐(0) 编辑
摘要: .netcore3.1 Json字符串转Json对象 Json字符串:userdata {"Total":2,"userid":"298263054733283328","Data":[{"cangkuid":"3905063272621015040","check":true},{"cangkui 阅读全文
posted @ 2021-07-01 10:30 中国结 阅读(1786) 评论(0) 推荐(0) 编辑
摘要: C# .net core 定时器 System.Timers.Timer System.Timers.Timer t = new System.Timers.Timer(10000);//实例化Timer类,设置间隔时间为10000毫秒; t.Elapsed += new System.Timers 阅读全文
posted @ 2021-06-26 00:55 中国结 阅读(2659) 评论(0) 推荐(0) 编辑
摘要: C# 在Startup.cs中添加自定义启动项的实现方法 1、首先创建一个静态类,在该类中创建用于启动的静态方法 namespace Test { public static class TestExtension { static TestParam _param;//定义一个全局变量 publi 阅读全文
posted @ 2021-06-23 09:13 中国结 阅读(1678) 评论(0) 推荐(0) 编辑