fix
Helius
2022-08-04 876e250c27eeca4df0c13c3d222103afd9e06b7e
src/main/java/com/xcong/farmer/cms/modules/core/controller/CmsCoreController.java
@@ -18,7 +18,7 @@
 **/
@Slf4j
@RestController
@RequestMapping(value = "/api")
@RequestMapping(value = "/cms")
@Api(value = "CmsCoreController", tags = "CMS核心类")
public class CmsCoreController {
@@ -28,7 +28,8 @@
    @ApiOperation(value = "发布文章", notes = "发布文章")
    @PostMapping(value = "releaseArticle/{id}")
    public Result releaseArticle(@PathVariable("id") Long id) {
        Long companyId = LoginUserUtil.getCompanyId();
//        Long companyId = LoginUserUtil.getCompanyId();
        Long companyId = 24L;
        releaseService.releaseArticle(id, companyId);
        return Result.ok("success");
    }
@@ -36,7 +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 = LoginUserUtil.getCompanyId();
        Long companyId = 24L;
        releaseService.releaseColumn(id, type, companyId);
        return Result.ok("success");
    }
@@ -44,8 +46,9 @@
    @ApiOperation(value = "发布首页", notes = "发布首页")
    @PostMapping(value = "/releaseIndex")
    public Result releaseIndex() {
        Long companyId = LoginUserUtil.getCompanyId();
        releaseService.releaseIndex(companyId);
//        Long companyId = LoginUserUtil.getCompanyId();
        Long companyId = 24L;
        releaseService.releaseIndex(companyId, true);
        return Result.ok("success");
    }