AzureStorageBlobExtensions.cs 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  1. using System.Threading.Tasks;
  2. using Azure.Storage;
  3. using Azure.Storage.Blobs;
  4. using Azure.Storage.Blobs.Models;
  5. using TEAMModelOS.SDK.Module.AzureBlob.Configuration;
  6. using TEAMModelOS.SDK.Module.AzureBlob.Container;
  7. using TEAMModelOS.SDK.Helper.Security.ShaHash;
  8. using System;
  9. using System.IO;
  10. using Azure.Storage.Blobs.Specialized;
  11. using System.Collections.Generic;
  12. using System.Linq;
  13. using System.Text;
  14. using Azure.Core;
  15. using Azure;
  16. using TEAMModelOS.SDK;
  17. using TEAMModelOS.SDK.Extension;
  18. using HTEXLib.COMM.Helpers;
  19. using System.Text.Encodings.Web;
  20. using TEAMModelOS.SDK.Models.Table;
  21. using Microsoft.AspNetCore.Http;
  22. using TEAMModelOS.Models;
  23. using Microsoft.Azure.Cosmos.Table;
  24. using DocumentFormat.OpenXml.Spreadsheet;
  25. using System.Text.Json;
  26. using HTEXLib.DOCX.Models;
  27. using static TEAMModelOS.SDK.CoreAPIHttpService;
  28. namespace TEAMModelOS.SDK.DI
  29. {
  30. public static class AzureStorageBlobExtensions
  31. {
  32. /// <summary>
  33. /// 取得指定前置詞的 Blob 名稱的總大小(Bytes),例如指定目錄名稱為前置詞
  34. /// </summary>
  35. /// <param name="prefix">篩選開頭名稱,Null代表容器總大小</param>
  36. /// <returns>總大小(Bytes),如果為Null代表查無前置詞或者發生錯誤</returns>
  37. public static async Task<long?> GetBlobsSize(this BlobContainerClient client, string prefix = null)
  38. {
  39. long? size = 0;
  40. try
  41. {
  42. await foreach (BlobItem item in client.GetBlobsAsync(BlobTraits.None, BlobStates.None, prefix))
  43. {
  44. if (item.Name.StartsWith("res/", StringComparison.OrdinalIgnoreCase) && item.Name.EndsWith(".htex", StringComparison.OrdinalIgnoreCase))
  45. { continue; }
  46. if (!prefix.Equals(item.Name))
  47. {
  48. //避免操作(1111) /1111/1111.json /1111111/11111.json
  49. if (!prefix.EndsWith("/"))
  50. {
  51. if (item.Name.StartsWith(prefix + "/"))
  52. {
  53. size += item.Properties.ContentLength;
  54. }
  55. }
  56. }
  57. else
  58. {
  59. size += item.Properties.ContentLength;
  60. }
  61. };
  62. return size;
  63. }
  64. catch
  65. {
  66. return size;
  67. }
  68. }
  69. public static async Task<List<string>> List(this BlobContainerClient client, string prefix = null) {
  70. try
  71. {
  72. List<string> items = new List<string>();
  73. await foreach (BlobItem item in client.GetBlobsAsync(BlobTraits.None, BlobStates.None, prefix)) {
  74. items.Add(item.Name);
  75. }
  76. return items;
  77. }
  78. catch
  79. {
  80. return null;
  81. }
  82. }
  83. /// <summary>
  84. /// 取得指定前置詞的 Blob 名稱的總大小(Bytes),例如指定目錄名稱為前置詞
  85. /// </summary>
  86. /// <param name="prefix">篩選開頭名稱,Null代表容器總大小</param>
  87. /// <returns>總大小(Bytes),如果為Null代表查無前置詞或者發生錯誤</returns>
  88. public static async Task<(long?, Dictionary<string, double?>)> GetBlobsCatalogSize(this BlobContainerClient client, string prefix = null)
  89. {
  90. long? size = 0;
  91. Dictionary<string, double?> dict = new Dictionary<string, double?>();
  92. try
  93. {
  94. List<KeyValuePair<string, double?>> foderSize = new List<KeyValuePair<string, double?>>();
  95. await foreach (BlobItem item in client.GetBlobsAsync(BlobTraits.None, BlobStates.None, prefix))
  96. {
  97. var len = item.Properties.ContentLength;
  98. foderSize.Add(new KeyValuePair<string, double?>(item.Name.Split("/")[0], len));
  99. size += item.Properties.ContentLength;
  100. };
  101. foderSize.Select(x => new { x.Key, x.Value }).GroupBy(y=>y.Key).ToList().ForEach(g=> {
  102. var gpsize = g.Select(m => m.Value).Sum();
  103. dict[g.Key] = gpsize;
  104. });
  105. return (size, dict);
  106. }
  107. catch
  108. {
  109. return (size, dict);
  110. }
  111. }
  112. public class OptUrl
  113. {
  114. public string url { get; set; }
  115. public long size { get; set; }
  116. }
  117. /// <summary>
  118. /// 取得指定前置詞的 Blob 名稱的總大小(Bytes),例如指定目錄名稱為前置詞
  119. /// </summary>
  120. /// <param name="urls">多个文件的连接/param>
  121. /// <returns>總大小(Bytes),如果為Null代表查無前置詞或者發生錯誤</returns>
  122. public static async Task<List<OptUrl>> GetBlobsSize(this BlobContainerClient client, List<string> urls)
  123. {
  124. List<OptUrl> optUrls = new List<OptUrl>();
  125. try
  126. {
  127. if (urls != null) {
  128. foreach (var url in urls)
  129. {
  130. OptUrl optUrl = new OptUrl { url = url, size = 0 };
  131. var eurl = System.Web.HttpUtility.UrlDecode(url, Encoding.UTF8);
  132. var blob = client.GetBlobClient(eurl);
  133. if (blob.Exists())
  134. {
  135. var props = await blob.GetPropertiesAsync();
  136. var size = props.Value.ContentLength;
  137. optUrl.size = size;
  138. }
  139. optUrls.Add(optUrl);
  140. }
  141. }
  142. return optUrls;
  143. }
  144. catch
  145. {
  146. return optUrls;
  147. }
  148. }
  149. /// <summary>
  150. ///prefixs多个文件或文件夹路径删除
  151. ///prefixs 或者按前缀文件夹删除
  152. ///
  153. /// </summary>
  154. /// <param name="prefix">篩選開頭名稱,Null代表容器</param>
  155. public static async Task<bool> DeleteBlobs(this BlobServiceClient client,DingDing _dingDing, string blobContainerName, List<string> prefixs )
  156. {
  157. if (!prefixs.IsNotEmpty()) return false;
  158. try
  159. {
  160. BlobContainerClient bcc = client.GetBlobContainerClient(blobContainerName.ToLower());
  161. BlobBatchClient bbc = client.GetBlobBatchClient();
  162. List<Uri> blobs = new List<Uri>();
  163. List<Task<Azure.Response<bool>>> list = new List<Task<Response<bool>>>();
  164. foreach (var prefix in prefixs) {
  165. string px = prefix;
  166. if (prefix.StartsWith("/")) {
  167. px= prefix.Substring(1);
  168. }
  169. //目录必须有两层以上,避免删除根目录所有的。
  170. var pxlen= px.Split("/");
  171. if (pxlen.Length >=2) {
  172. var items = bcc.GetBlobsAsync(BlobTraits.None, BlobStates.None, px);
  173. await foreach (var item in items)
  174. {
  175. var urib = new UriBuilder(bcc.Uri);
  176. if (!prefix.Equals(item.Name))
  177. {
  178. //避免操作(1111) /1111/1111.json /1111111/11111.json
  179. if (!prefix.EndsWith("/"))
  180. {
  181. if (item.Name.StartsWith(prefix + "/"))
  182. {
  183. string path = $"{urib.Uri.AbsoluteUri}/{item.Name}";
  184. list.Add(bcc.GetBlobClient(item.Name).DeleteIfExistsAsync());
  185. if (item.Name.StartsWith("res/") && item.Name.EndsWith("/index.json"))
  186. {
  187. list.Add(bcc.GetBlobClient($"{prefix}.htex").DeleteIfExistsAsync());
  188. list.Add(bcc.GetBlobClient($"{prefix}.HTEX").DeleteIfExistsAsync());
  189. }
  190. blobs.Add(new Uri(path));
  191. }
  192. }
  193. }
  194. else
  195. {
  196. string path = $"{urib.Uri.AbsoluteUri}/{item.Name}";
  197. list.Add(bcc.GetBlobClient(item.Name).DeleteIfExistsAsync());
  198. blobs.Add(new Uri(path));
  199. }
  200. };
  201. }
  202. }
  203. if (list.Count > 0) {
  204. if (list.Count <= 256)
  205. {
  206. await Task.WhenAll(list);
  207. }
  208. else
  209. {
  210. int pages = (list.Count + 255) / 256; //256是批量操作最大值,pages = (total + max -1) / max;
  211. for (int i = 0; i < pages; i++)
  212. {
  213. List<Task<Azure.Response<bool>>> lists = list.Skip((i) * 256).Take(256).ToList();
  214. await Task.WhenAll(lists);
  215. }
  216. }
  217. }
  218. return true;
  219. /*
  220. if (blobs.Count <= 256)
  221. {
  222. if (blobs.Count > 0) {
  223. try {
  224. Azure.Response[] ass = await bbc.DeleteBlobsAsync(blobs);
  225. }
  226. catch (AggregateException ex)
  227. {
  228. //删除多个时会,如果其中一个文件不存在 或者其中一个删除失败会引发该异常
  229. return true;
  230. }
  231. catch (RequestFailedException ex)
  232. {
  233. await _dingDing.SendBotMsg($"/{ex.Message}\n{ex.StackTrace}", GroupNames.醍摩豆服務運維群組);
  234. return true;
  235. }
  236. catch (Exception ex)
  237. {
  238. return true;
  239. }
  240. }
  241. return true;
  242. }
  243. else
  244. {
  245. int pages = (blobs.Count + 255) / 256; //256是批量操作最大值,pages = (total + max -1) / max;
  246. for (int i = 0; i < pages; i++)
  247. {
  248. List<Uri> lists = blobs.Skip((i) * 256).Take(256).ToList();
  249. try { Azure.Response[] ass = await bbc.DeleteBlobsAsync(lists); }
  250. catch (AggregateException ex)
  251. {
  252. //删除多个时会,如果其中一个文件不存在 或者其中一个删除失败会引发该异常
  253. return true;
  254. }
  255. catch (RequestFailedException ex)
  256. {
  257. return true;
  258. }
  259. catch (Exception ex)
  260. {
  261. return true;
  262. }
  263. }
  264. return true;
  265. }
  266. */
  267. }
  268. catch(Exception ex )
  269. {
  270. await _dingDing.SendBotMsg($"文件删除异常{ex.Message}\n{ex.StackTrace}{prefixs.ToJsonString()}", GroupNames.醍摩豆服務運維群組);
  271. return false;
  272. }
  273. }
  274. /// <summary>
  275. /// 保存操作记录
  276. /// </summary>
  277. /// <param name="azureStorage"></param>
  278. /// <param name="type"></param>
  279. /// <param name="msg"></param>
  280. /// <param name="dingDing"></param>
  281. /// <param name="scope"></param>
  282. /// <param name="bizId"></param>
  283. /// <param name="option"></param>
  284. /// <param name="httpContext"></param>
  285. /// <returns></returns>
  286. public static async Task SaveLog(this AzureStorageFactory azureStorage, string type, string msg,DingDing dingDing, string scope = null, string bizId = null, Option option = null, HttpContext httpContext = null)
  287. {
  288. var table = azureStorage.GetCloudTableClient().GetTableReference("IESOptLog");
  289. OptLog log = new() { RowKey = Guid.NewGuid().ToString() };
  290. try
  291. {
  292. object id = null, school = null, name = null, website = null ;
  293. httpContext?.Items.TryGetValue("ID", out id);
  294. httpContext?.Items.TryGetValue("School", out school);
  295. httpContext?.Items.TryGetValue("Name", out name);
  296. httpContext?.Items.TryGetValue("Website", out website);
  297. log.tmdId = id != null ? $"{id}" : log.tmdId;
  298. log.name = name != null ? $"{name}" : log.name;
  299. string host = httpContext?.Request?.Host.Value;
  300. log.school = school != null ? $"{school}" : log.school;
  301. log.PartitionKey = type != null ? $"Log-{type}" : "Log-Default";
  302. log.RowKey = bizId != null ? bizId : log.RowKey;
  303. log.platform = website!=null? $"{website}" : "Default";
  304. log.msg = msg;
  305. log.type = type;
  306. log.scope = scope;
  307. host = !string.IsNullOrWhiteSpace($"{host}") ? $"{host}" : option?.Location != null ? $"{host}" : "Default";
  308. log.url =$"{host}{httpContext?.Request.Path}" ;
  309. if (!string.IsNullOrWhiteSpace(msg) && msg.Length > 256)
  310. {
  311. log.saveMod = 1;
  312. log.jsonfile = $"/0-public/optlog/{log.RowKey}-{log.PartitionKey}.json";
  313. await azureStorage.GetBlobContainerClient("0-public").UploadFileByContainer(log.ToJsonString(), "optlog", $"{log.RowKey}-{log.PartitionKey}.json");
  314. log.msg = null;
  315. await table.SaveOrUpdate<OptLog>(log);
  316. }
  317. else {
  318. await table.SaveOrUpdate<OptLog>(log);
  319. }
  320. }
  321. catch (Exception ex)
  322. {
  323. _ = dingDing.SendBotMsg($"日志保存失败:{ex.Message}\n{ex.StackTrace},,{log.ToJsonString()}", GroupNames.醍摩豆服務運維群組);
  324. }
  325. }
  326. public static async Task SaveLogLang(this AzureStorageFactory azureStorage, string type,string rootPath, Dictionary<string, object> replaceData, DingDing dingDing, string scope = null, string bizId = null, Option option = null, HttpContext httpContext = null)
  327. {
  328. string msg = FileWay.FileValue(rootPath, "zh-cn", type, replaceData);
  329. var table = azureStorage.GetCloudTableClient().GetTableReference("IESOptLog");
  330. OptLog log = new() { RowKey = Guid.NewGuid().ToString() };
  331. try
  332. {
  333. object id = null, school = null, name = null, website = null;
  334. httpContext?.Items.TryGetValue("ID", out id);
  335. httpContext?.Items.TryGetValue("School", out school);
  336. httpContext?.Items.TryGetValue("Name", out name);
  337. httpContext?.Items.TryGetValue("Website", out website);
  338. log.tmdId = id != null ? $"{id}" : log.tmdId;
  339. log.name = name != null ? $"{name}" : log.name;
  340. string host = httpContext?.Request?.Host.Value;
  341. log.school = school != null ? $"{school}" : log.school;
  342. log.PartitionKey = type != null ? $"Log-{type}" : "Log-Default";
  343. log.RowKey = bizId != null ? bizId : log.RowKey;
  344. log.platform = website != null ? $"{website}" : "Default";
  345. log.msg = msg;
  346. log.tmsg = FileWay.FileValue(rootPath, "zh-tw", type, replaceData);
  347. log.emsg = FileWay.FileValue(rootPath, "en-us", type, replaceData);
  348. log.type = type;
  349. log.scope = scope;
  350. host = !string.IsNullOrWhiteSpace($"{host}") ? $"{host}" : option?.Location != null ? $"{host}" : "Default";
  351. log.url = $"{host}{httpContext?.Request.Path}";
  352. if (!string.IsNullOrWhiteSpace(msg) && msg.Length > 256)
  353. {
  354. log.saveMod = 1;
  355. log.jsonfile = $"/0-public/optlog/{log.RowKey}-{log.PartitionKey}.json";
  356. await azureStorage.GetBlobContainerClient("0-public").UploadFileByContainer(log.ToJsonString(), "optlog", $"{log.RowKey}-{log.PartitionKey}.json");
  357. log.msg = null;
  358. await table.SaveOrUpdate<OptLog>(log);
  359. }
  360. else
  361. {
  362. await table.SaveOrUpdate<OptLog>(log);
  363. }
  364. }
  365. catch (Exception ex)
  366. {
  367. _ = dingDing.SendBotMsg($"日志保存失败:{ex.Message}\n{ex.StackTrace},,{log.ToJsonString()}", GroupNames.醍摩豆服務運維群組);
  368. }
  369. }
  370. /// <summary>
  371. /// 系统管理员 资源,题目关联,htex关联,学习活动学生上传文件关联,基本信息关联,教室平面图关联,评测冷数据关联
  372. /// "system": [ "res", "item", "htex", "task", "info", "room", "exam" ],
  373. /// 资源,题目关联,htex关联,学习活动学生上传文件关联,基本信息关联,教室平面图关联,评测冷数据关联
  374. /// "school": [ "res", "item", "htex", "task", "info", "room", "exam" ],
  375. /// 资源,题目关联,htex关联,学习活动关联,教师基本信息关联
  376. /// "teacher": [ "res", "item", "htex", "task", "info" ],
  377. /// 答案及学习活动上传的文件,学生基本信息关联
  378. ///"student": [ "stu/{studentId}/ans", "stu/{studentId}/task" ]
  379. /// </summary>
  380. /// <param name="name">容器名称</param>
  381. /// <param name="json">文件内容的流</param>
  382. /// <param name="folder">业务文件夹</param>
  383. /// <param name="fileName">文件名</param>
  384. /// <param name="contentTypeDefault">是否存放文件后缀对应的contentType</param>
  385. /// <returns></returns>
  386. public static async Task<string> UploadFileByContainer(this BlobContainerClient blobContainer, string json, string root, string blobpath, bool contentTypeDefault = true)
  387. {
  388. // string groupName =folder;
  389. //BlobContainerClient blobContainer = azureStorage.GetBlobContainerClient(name.ToLower().Replace("#", "")); //blobClient.GetContainerReference(groupName);
  390. var blockBlob = blobContainer.GetBlobClient($"{root}/{blobpath}");
  391. string content_type = "application/octet-stream";
  392. if (!contentTypeDefault)
  393. {
  394. string fileext = blobpath.Substring(blobpath.LastIndexOf(".") > 0 ? blobpath.LastIndexOf(".") : 0);
  395. ContentTypeDict.dict.TryGetValue(fileext, out string contenttype);
  396. if (!string.IsNullOrEmpty(contenttype))
  397. {
  398. content_type = contenttype;
  399. }
  400. }
  401. byte[] bytes = System.Text.Encoding.Default.GetBytes(json);
  402. Stream streamBlob = new MemoryStream(bytes);
  403. await blockBlob.UploadAsync(streamBlob, true);
  404. blockBlob.SetHttpHeaders(new BlobHttpHeaders { ContentType = content_type });
  405. return blockBlob.Uri.ToString();
  406. }
  407. /// <summary>
  408. /// 系统管理员 资源,题目关联,htex关联,学习活动学生上传文件关联,基本信息关联,教室平面图关联,评测冷数据关联
  409. /// "system": [ "res", "item", "htex", "task", "info", "room", "exam" ],
  410. /// 资源,题目关联,htex关联,学习活动学生上传文件关联,基本信息关联,教室平面图关联,评测冷数据关联
  411. /// "school": [ "res", "item", "htex", "task", "info", "room", "exam" ],
  412. /// 资源,题目关联,htex关联,学习活动关联,教师基本信息关联
  413. /// "teacher": [ "res", "item", "htex", "task", "info" ],
  414. /// 答案及学习活动上传的文件,学生基本信息关联
  415. ///"student": [ "stu/{studentId}/ans", "stu/{studentId}/task" ]
  416. /// </summary>
  417. /// <param name="name">容器名称</param>
  418. /// <param name="stream">文件内容的流</param>
  419. /// <param name="folder">业务文件夹</param>
  420. /// <param name="fileName">文件名</param>
  421. /// <param name="contentTypeDefault">是否存放文件后缀对应的contentType</param>
  422. /// <returns></returns>
  423. public static async Task<string> UploadFileByContainer(this BlobContainerClient blobContainer, Stream stream, string root, string blobpath, bool contentTypeDefault = true)
  424. {
  425. //BlobContainerClient blobContainer = azureStorage.GetBlobContainerClient(name.ToLower().Replace("#", "")); //blobClient.GetContainerReference(groupName);
  426. Uri url = blobContainer.Uri;
  427. var blockBlob = blobContainer.GetBlobClient($"{root}/{blobpath}");
  428. string content_type = "application/octet-stream";
  429. if (!contentTypeDefault)
  430. {
  431. string fileext = blobpath.Substring(blobpath.LastIndexOf(".") > 0 ? blobpath.LastIndexOf(".") : 0);
  432. ContentTypeDict.dict.TryGetValue(fileext, out string contenttype);
  433. if (!string.IsNullOrEmpty(contenttype))
  434. {
  435. content_type = contenttype;
  436. }
  437. }
  438. await blockBlob.UploadAsync(stream, true);
  439. blockBlob.SetHttpHeaders(new BlobHttpHeaders { ContentType = content_type });
  440. return blockBlob.Uri.ToString();
  441. }
  442. /// <summary>
  443. /// BI保存操作记录
  444. /// </summary>
  445. /// <param name="azureStorage"></param>
  446. /// <param name="type"></param>
  447. /// <param name="msg"></param>
  448. /// <param name="dingDing"></param>
  449. /// <param name="scope"></param>
  450. /// <param name="option"></param>
  451. /// <param name="httpContext"></param>
  452. /// <returns></returns>
  453. public static async Task SaveBILog(BlobContainerClient blobContainer, CloudTableClient tableClient, string type, string msg, DingDing dingDing, string tid = null, string tname = null, string twebsite = null, string scope = null, Option option = null, HttpContext httpContext = null)
  454. {
  455. var table = tableClient.GetTableReference("BIOptLog");
  456. BIOptLog biLog = new() { RowKey = Guid.NewGuid().ToString() };
  457. try
  458. {
  459. object id = null, name = null, ddid = null, ddname = null, website = null;
  460. httpContext?.Items.TryGetValue("ID", out id);
  461. httpContext?.Items.TryGetValue("Name", out name);
  462. httpContext?.Items.TryGetValue("DDId", out ddid);
  463. httpContext?.Items.TryGetValue("DDName", out ddname);
  464. httpContext?.Items.TryGetValue("Website", out website);
  465. string site = twebsite != null ? twebsite : $"{website}";
  466. biLog.tmdId = id != null ? $"{id}" : tid;
  467. biLog.name = name != null ? $"{name}" : tname;
  468. biLog.PartitionKey = type != null ? $"{site}-Log-{type}" : $"{site}-Log-Default";
  469. biLog.platform = site != null ? site : "Default";
  470. biLog.msg = msg;
  471. biLog.type = type;
  472. biLog.scope = scope;
  473. string host = httpContext?.Request?.Host.Value;
  474. host = !string.IsNullOrWhiteSpace($"{host}") ? $"{host}" : option?.Location != null ? $"{host}" : "Default";
  475. biLog.url = $"{host}{httpContext?.Request.Path}";
  476. if (!string.IsNullOrWhiteSpace(msg) && msg.Length > 255)
  477. {
  478. biLog.saveMod = 1;
  479. biLog.jsonfile = $"/0-public/BIOptLog/{biLog.PartitionKey}-{biLog.RowKey}.json";
  480. await UploadFileByContainer(blobContainer, biLog.ToJsonString(), "BIOptLog", $"{biLog.PartitionKey}-{biLog.RowKey}.json");
  481. biLog.msg = null;
  482. await table.SaveOrUpdate<BIOptLog>(biLog);
  483. }
  484. else await table.SaveOrUpdate<BIOptLog>(biLog);
  485. }
  486. catch (Exception ex)
  487. {
  488. _ = dingDing.SendBotMsg($"BI日志保存失败:{ex.Message}\n{ex.StackTrace},,{biLog.ToJsonString()}", GroupNames.成都开发測試群組);
  489. }
  490. }
  491. }
  492. }