فهرست منبع

Merge branch 'master' into develop

CrazyIter_Bin 2 سال پیش
والد
کامیت
a534fdf1f6
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      TEAMModelOS/Controllers/Teacher/InitController.cs

+ 2 - 2
TEAMModelOS/Controllers/Teacher/InitController.cs

@@ -304,7 +304,7 @@ namespace TEAMModelOS.Controllers
                                         note = techinfo.note,
                                         id = techinfo.id
                                     } } };
-                                    await _azureCosmos.GetCosmosClient().GetContainer(Constant.TEAMModelOS, Constant.School).ReplaceItemAsync(teacherImport, $"{school}", new PartitionKey("TeacherImport"));
+                                    await _azureCosmos.GetCosmosClient().GetContainer(Constant.TEAMModelOS, Constant.School).CreateItemAsync(teacherImport,   new PartitionKey("TeacherImport"));
                                 }
                                 return Ok(new { status = 1 });
                             }
@@ -319,7 +319,7 @@ namespace TEAMModelOS.Controllers
             }
             catch (Exception ex)
             {
-                await _dingDing.SendBotMsg($"IES5,{_option.Location},Teacher/init/set-teacher-info()\n{ex.Message}\n{ex.StackTrace}{request.ToJsonString()}", GroupNames.醍摩豆服務運維群組);
+                await _dingDing.SendBotMsg($"IES5,{_option.Location},Teacher/init/set-teacher-info()\n{ex.Message}\n{ex.StackTrace}{request.ToJsonString()}\n{school}", GroupNames.醍摩豆服務運維群組);
                 return BadRequest("teacher not exist");
 
             }