浏览代码

优化IES5 开放平台

Li 2 年之前
父节点
当前提交
dedbcbd949

+ 3 - 3
TEAMModelOS.SDK/Context/Attributes/Filter/ApiTokenAttribute.cs

@@ -175,8 +175,8 @@ namespace TEAMModelOS.Filter
                             {
                                 issuer = keys[3];
                             }
-                            //if (iss.Equals(issuer))
-                            //{
+                            if (iss.Equals(issuer))
+                            {
                                 //aud  受众
                                 id = jwt.Payload.Sub;//主题,又是应用APP,或者企业id 
                                 jti = jwt.Payload.Jti;//jwt唯一标识
@@ -303,7 +303,7 @@ namespace TEAMModelOS.Filter
                                     {
                                     }
                                 }
-                            //}
+                            }
                         }
                         else
                         {

+ 5 - 5
TEAMModelOS/Controllers/OpenApi/Business/BizCustomizeController.cs

@@ -60,7 +60,7 @@ 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> UpLessonRec(JsonElement jsonElement)
+        public async Task<IActionResult> UpdateLesson(JsonElement jsonElement)
         {
             var (id, school) = HttpContext.GetApiTokenInfo();
 
@@ -291,9 +291,9 @@ namespace TEAMModelOS.Controllers
         /// <param name="jsonElement"></param>
         /// <returns></returns>
         [ProducesDefaultResponseType]
-        [HttpPost("get-lesson-records")]
+        [HttpPost("get-vrar-lessons")]
         [ApiToken(Auth = "2004", Name = "获取学校课例", TName = "獲取學校課例", EName = "Get school lessons", RWN = "R", Limit = false)]
-        public async Task<IActionResult> GetLessonRec(JsonElement jsonElement)
+        public async Task<IActionResult> GetLesson(JsonElement jsonElement)
         {
             var (id, school) = HttpContext.GetApiTokenInfo();
             jsonElement.TryGetProperty("lessonId", out JsonElement lessId);
@@ -319,9 +319,9 @@ namespace TEAMModelOS.Controllers
         /// <param name="jsonElement"></param>
         /// <returns></returns>
         [ProducesDefaultResponseType]
-        [HttpPost("get-lesson-analysis")]
+        [HttpPost("get-vrar-lesson-analysis")]
         [ApiToken(Auth = "2006", Name = "获取学校课例", TName = "獲取學校課例", EName = "Get school lessons", RWN = "R", Limit = false)]
-        public async Task<IActionResult> GetLessonStats(JsonElement jsonElement)
+        public async Task<IActionResult> GetLessonAnslysis(JsonElement jsonElement)
         {
             var (id, school) = HttpContext.GetApiTokenInfo();
             if (!jsonElement.TryGetProperty("lessonId", out JsonElement lessonId)) return Ok(new { responseDate = new ResponseData<dynamic>() { code = RespondCode.ParamsError, msg = "lessId参数错误", data = null } });  //上课人ID  ;