101captain
2021-09-22 bfdf34eb4d7469d6ec8b03f6bc77286cd680c3a5
Merge branch 'property' into test
1个文件已修改
50 ■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComPropertyAlarmApi.java 50 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComPropertyAlarmApi.java
@@ -70,31 +70,31 @@
        return propertyService.comPropertyAlarmInsert(comPropertyAlarmVO);
    }
    /**
     * 无验证新增数据
     *
     * @param str 加密json
     * @return 新增结果
     */
    @ApiOperation(value = "无验证新增数据")
    @GetMapping("/noToken")
    public R insertNoAuth(String str) {
        if(!str.isEmpty()){
            try {
                String result= MyAESUtil.Decrypt(str.replaceAll(" ", "+"), key);
                if(!result.isEmpty()){
                    ComPropertyAlarmVO comPropertyAlarmVO=JSON.parseObject(result,ComPropertyAlarmVO.class);
                    if(comPropertyAlarmVO!=null){
                        return propertyService.comPropertyAlarmInsert(comPropertyAlarmVO);
                    }
                }
            } catch (Exception e) {
                return R.fail("验证失败");
            }
        }
        return R.fail("数据异常");
    }
//    /**
//     * 无验证新增数据
//     *
//     * @param str 加密json
//     * @return 新增结果
//     */
//    @ApiOperation(value = "无验证新增数据")
//    @GetMapping("/noToken")
//    public R insertNoAuth(String str) {
//        if(!str.isEmpty()){
//            try {
//                String result= MyAESUtil.Decrypt(str.replaceAll(" ", "+"), key);
//                if(!result.isEmpty()){
//                    ComPropertyAlarmVO comPropertyAlarmVO=JSON.parseObject(result,ComPropertyAlarmVO.class);
//                    if(comPropertyAlarmVO!=null){
//                        return propertyService.comPropertyAlarmInsert(comPropertyAlarmVO);
//                    }
//                }
//            } catch (Exception e) {
//                return R.fail("验证失败");
//            }
//
//        }
//        return R.fail("数据异常");
//    }
    /**
     * 修改数据