Explorar el Código

量表更新接口调整

zsf hace 5 meses
padre
commit
deb13da2e8

+ 2 - 3
src/main/java/com/rf/psychological/filter/JWTInterceptorPublicConfig.java

@@ -34,7 +34,8 @@ public class JWTInterceptorPublicConfig implements WebMvcConfigurer {
         //公网版需要直接显示量表认知任务以及类别
         String[] temp = new String[]{"/category/getCognizeCategoryList", "/category/getCategoryList",
                 "/subjectInfo/getSubjectListByAuth", "/subjectInfo/getCognizeListByAuth", "/subjectInfo/getRecallChar", "/subjectInfo/getRecallCharTwo",
-                "/subjectInfo/getSubjectByFlag/*","/subjectInfo/getSubjectByFlagV2/*","/scaleInfo/*","/record/getRecordByModelPhone","/api/orderInfo/queryOrderDetail/**","/scaleExternalSource/save"};
+                "/subjectInfo/getSubjectByFlag/*","/subjectInfo/getSubjectByFlagV2/*","/scaleInfo/*","/record/getRecordByModelPhone",
+                "/api/orderInfo/queryOrderDetail/**","/scaleExternalSource/save","/system/updateItem/**","/system/updateAnswer/**"};
         String[] wxPay = new String[]{"/api/wx-pay/native/notify","/api/wx-pay/refunds/notify",
                 "/api/wx-pay/getPhone/*","/api/wx-pay/code2openid","/api/wx-pay/h5Pay",
                 "/api/wx-pay/code2openid2","/api/wx-pay/queryOrder/**","/api/promotionInfo/queryPromotionDetail/**","/record/getWeiboRecordById","/record/getWeiboRecordById/**"};
@@ -50,7 +51,6 @@ public class JWTInterceptorPublicConfig implements WebMvcConfigurer {
                 .excludePathPatterns("/file/**", "/result/download/**")
                 .excludePathPatterns("/download/**")
                 .excludePathPatterns("/apk/**")
-                .excludePathPatterns("/device/**")
                 .excludePathPatterns("/getRecordById")
                 .excludePathPatterns("/userImport")
                 .excludePathPatterns("/test/token")
@@ -70,7 +70,6 @@ public class JWTInterceptorPublicConfig implements WebMvcConfigurer {
                 .excludePathPatterns("/file/**", "/result/download/**")
                 .excludePathPatterns("/download/**")
                 .excludePathPatterns("/apk/**")
-                .excludePathPatterns("/device/**")
                 .excludePathPatterns("/getRecordById")
                 .excludePathPatterns("/userImport")
                 .excludePathPatterns("/test/token")

+ 2 - 2
src/main/java/com/rf/psychological/user/rest/SystemController.java

@@ -636,7 +636,7 @@ public class SystemController extends BaseController {
                 }
                 scaleEntity.setCheckItems(item);
                 if (item != null){
-                    // scaleService.saveScale(scaleEntity);
+                     //scaleService.saveScale(scaleEntity);
                 }
                 log.info("------" + scaleEntity.toString());
             }
@@ -659,7 +659,7 @@ public class SystemController extends BaseController {
                 answerEntity.setName(DESede.encryptString(answerObj.get(i).get(1).toString()));
                 answerEntity.setScore(DESede.encryptString(answerObj.get(i).get(2).toString()));
                 log.info(answerEntity.getName());
-                // answerService.updateAnswer(answerEntity);
+                //answerService.updateAnswer(answerEntity);
             }
 
         }catch (Exception e){