CrazyIter_Bin 2 年之前
父節點
當前提交
d843347eda

+ 5 - 1
TEAMModelOS.SDK/Models/Cosmos/Common/VRARLessonRecord.cs

@@ -9,7 +9,11 @@ namespace TEAMModelOS.SDK.Models
     /// 课堂记录简要信息。
     /// </summary>
     public class VRARLessonRecord : CosmosEntity
-    {
+    { 
+        /// <summary>
+        ///手机号
+        /// </summary>
+        public string mobile { get; set; }
         /// <summary>
         ///必填 教师醍摩豆id
         /// </summary>

+ 1 - 1
TEAMModelOS.SDK/Models/Service/StudentService.cs

@@ -2032,7 +2032,7 @@ namespace TEAMModelOS.SDK
                             List<StudentGuardian> guardians = null;
                             int year = 0;
                             //有給pw欄位才進行處理
-                            if (student.TryGetProperty("pw", out var tmpPw))
+                            if (student.TryGetProperty("pw", out var tmpPw) && !"******".Equals($"{tmpPw}"))
                             {
                                 var response = await _azureCosmos.GetCosmosClient().GetContainer(Constant.TEAMModelOS, "Student").ReadItemStreamAsync(id.GetString(), new PartitionKey($"Base-{schoolId}"));
                                 if (response.Status == 200)

+ 21 - 3
TEAMModelOS/Controllers/OpenApi/Business/BizCustomizeController.cs

@@ -54,8 +54,26 @@ namespace TEAMModelOS.Controllers
             _serviceBus = serviceBus;
             _snowflakeId = snowflakeId;
         }
-        
+        //shasdu
         #region  杉达公司
+
+        /// <summary>
+        /// 开课或者上传课例信息  是因支持VR/AR的公司(杉达)
+        /// </summary>
+        /// <param name="jsonElement"></param>
+        /// <returns></returns>
+        [ProducesResponseType(StatusCodes.Status200OK)]
+        [ProducesResponseType(StatusCodes.Status400BadRequest)]
+        [ProducesDefaultResponseType]
+        [HttpPost("create-vrar-lesson-shanda-v2")]
+        [ApiToken(Auth = "2003", Name = "VR·AR开课/上传课例信息", TName = "VR·AR開課/上傳課例信息", EName = "Start VR·AR lesson/upload VR·AR lesson ", RWN = "W", Limit = false)]
+        public async Task<IActionResult> CreateVRARLessonShanDaV2(JsonElement jsonElement) {
+            var (id, school) = HttpContext.GetApiTokenInfo();
+            VRARLessonRecord lessonRecord= jsonElement.ToObject<VRARLessonRecord>();
+
+            return null; 
+        }
+
         /// <summary>
         /// 开课或者上传课例信息  是因支持VR/AR的公司(杉达)
         /// </summary>
@@ -66,10 +84,10 @@ namespace TEAMModelOS.Controllers
         [ProducesDefaultResponseType]
         [HttpPost("create-vrar-lesson-shanda")]
         [ApiToken(Auth = "2003", Name = "VR·AR开课/上传课例信息", TName = "VR·AR開課/上傳課例信息", EName = "Start VR·AR lesson/upload VR·AR lesson ", RWN = "W", Limit = false)]
-        public async Task<IActionResult> UpdateLesson(JsonElement jsonElement)
+        public async Task<IActionResult> CreateVRARLessonShanDa(JsonElement jsonElement)
         {
             var (id, school) = HttpContext.GetApiTokenInfo();
-
+           
             try
             {
                 jsonElement.TryGetProperty("baseJson", out JsonElement baseJson);    //课例基础文件信息json