摘要: class Program { static void Main(string[] args) { #region 创建工作线程 //创建工作线程 //Thread thread = new Thread(DoWork); //thread.Name = "工作线程1"; //// 启动线程 //t 阅读全文
posted @ 2025-03-18 10:53 半、枫 阅读(16) 评论(0) 推荐(0)
摘要: curl -X POST -H "Content-Type: application/json" -H "token: EB761FCF9D1B4FFE84B75086F8237FA9" -d "{\"buildId\":\"204072\",\"pageNumber\":\"1\",\"pageS 阅读全文
posted @ 2025-03-04 14:52 半、枫 阅读(17) 评论(0) 推荐(0)
摘要: 1.查看端口是否占用 netstat -ano | findstr "端口号" 2.注册windows服务(cmd管理员运行) sc create MyService binPath= "D:\桌面\安庆高新区对接\新建文件夹\AES\bin\Debug\AES.exe" 阅读全文
posted @ 2024-08-15 16:25 半、枫 阅读(19) 评论(0) 推荐(0)
摘要: new Guid(System.Security.Cryptography.SHA256.Create().ComputeHash(Encoding.UTF8.GetBytes(itemChild.childId.ToString())).Take(16).ToArray()).ToString() 阅读全文
posted @ 2024-04-09 21:07 半、枫 阅读(37) 评论(0) 推荐(0)
摘要: select STUFF(STUFF(STUFF(STUFF(CONVERT(NVARCHAR(32), HASHBYTES('SHA2_256','固定字符串'), 2), 9, 0, '-'), 14, 0, '-'), 19, 0, '-'), 24, 0, '-')36位 select RI 阅读全文
posted @ 2024-04-09 21:05 半、枫 阅读(89) 评论(0) 推荐(0)
摘要: 删除方法 private void CleanOldLogs(string logFolderPath) { try { DirectoryInfo directory = new DirectoryInfo(logFolderPath); FileInfo[] files = directory. 阅读全文
posted @ 2023-11-20 18:14 半、枫 阅读(126) 评论(0) 推荐(0)
摘要: 1、http+json public string PostHttp(string url, string body,string token) { try { HttpWebRequest Request = (HttpWebRequest)WebRequest.Create(url); Requ 阅读全文
posted @ 2023-04-11 11:01 半、枫 阅读(50) 评论(0) 推荐(0)
摘要: List<ChemicalInventory> listInventory = new List<ChemicalInventory>(); foreach (var item in response.EX_TAB) { ChemicalInventory Inventory = new Chemi 阅读全文
posted @ 2023-03-21 23:27 半、枫 阅读(59) 评论(0) 推荐(0)
摘要: USE [Inroad]GO /****** Object: StoredProcedure [dbo].[Help_TableColumn] Script Date: 2023/1/31 17:39:28 ******/SET ANSI_NULLS ONGO SET QUOTED_IDENTIFI 阅读全文
posted @ 2023-01-31 17:46 半、枫 阅读(36) 评论(0) 推荐(0)
摘要: Util.SetCertificatePolicy();在请求时加上这句调用 HttpWebRequest request = WebRequest.Create(loginurl) as HttpWebRequest; public static class Util { /// <summary 阅读全文
posted @ 2022-11-22 11:49 半、枫 阅读(360) 评论(0) 推荐(0)