摘要: 第一步:配置Config类 public class Config { // 应用ID,您的APPID public static string AppId = "2021000122603387"; // 支付宝网关 public static string Gatewayurl = "https 阅读全文
posted @ 2022-12-26 20:36 yinuozzzz 阅读(85) 评论(0) 推荐(0)
摘要: 第一步安装Newget包 Snowflake.Core 第二步 直接使用 命名空间 using Snowflake.Core; 就两行代码 var worker = new IdWorker(1, 1); long id = worker.NextId(); 阅读全文
posted @ 2022-12-26 19:46 yinuozzzz 阅读(66) 评论(0) 推荐(0)