CrazyIter_Bin 8 月之前
父节点
当前提交
b3ddd5e108
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      TEAMModelOS/Controllers/Common/HomeworkController.cs

+ 7 - 0
TEAMModelOS/Controllers/Common/HomeworkController.cs

@@ -32,6 +32,7 @@ using TEAMModelOS.SDK.Services;
 using TEAMModelOS.SDK.Models.Service.BI;
 
 using TEAMModelOS.SDK.Models.Service;
+using HTEXLib.DOCX.Models;
 
 namespace TEAMModelOS.Controllers.Learn
 {
@@ -512,10 +513,16 @@ namespace TEAMModelOS.Controllers.Learn
                         request.TryGetProperty("hasPrime", out JsonElement _hasPrime);
                         request.TryGetProperty("answer", out JsonElement _answer);
                         string partitionKey = $"HomeworkRecord-{userid}";
+                        string cnt = userid;
+
+
                         if ($"{_scope}".Equals(Constant.ScopeStudent))
                         {
+                            cnt=school;
                             partitionKey = $"HomeworkRecord-{school}-{userid}";
                         }
+
+                        await BlobService.RefreshBlobRoot(new BlobRefreshMessage { progress = "update", root = $"homework", name =cnt}, _serviceBus, _configuration, _azureRedis);
                         List<Attachment> content = _content.ToObject<List<Attachment>>();
                       
                         int taskStatus = -1;