fix
Helius
2022-08-16 f75fac3aaaf1e3783f2edb4d4e3261ffda7f9499
src/main/java/com/xcong/farmer/cms/modules/core/controller/CmsCoreController.java
@@ -29,7 +29,7 @@
    @PostMapping(value = "releaseArticle/{id}")
    public Result releaseArticle(@PathVariable("id") Long id) {
//        Long companyId = LoginUserUtil.getCompanyId();
        Long companyId = 24L;
        Long companyId = 26L;
        releaseService.releaseArticle(id, companyId);
        return Result.ok("success");
    }
@@ -37,8 +37,8 @@
    @ApiOperation(value = "发布栏目", notes = "发布栏目")
    @PostMapping(value = "releaseColumn/{type}/{id}")
    public Result releaseColumn(@PathVariable("id") Long id, @PathVariable("type") Integer type) {
//        Long companyId = LoginUserUtil.getCompanyId();
        Long companyId = 24L;
        Long companyId = LoginUserUtil.getCompanyId();
//        Long companyId = 24L;
        releaseService.releaseColumn(id, type, companyId);
        return Result.ok("success");
    }
@@ -46,8 +46,8 @@
    @ApiOperation(value = "发布首页", notes = "发布首页")
    @PostMapping(value = "/releaseIndex")
    public Result releaseIndex() {
//        Long companyId = LoginUserUtil.getCompanyId();
        Long companyId = 24L;
        Long companyId = LoginUserUtil.getCompanyId();
//        Long companyId = 24L;
        releaseService.releaseIndex(companyId, true);
        return Result.ok("success");
    }
@@ -56,7 +56,7 @@
    @PostMapping(value = "/releaseAll")
    public Result releaseAll() {
//        Long companyId = LoginUserUtil.getCompanyId();
        Long companyId = 24L;
        Long companyId = 26L;
        releaseService.releaseAll(companyId);
        return Result.ok("发布成功");
    }