diff --git a/ruoyi-admin/src/main/java/com/ruoyi/busi/controller/BusiSubscribeController.java b/ruoyi-admin/src/main/java/com/ruoyi/busi/controller/BusiSubscribeController.java index 65821d2..10636b5 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/busi/controller/BusiSubscribeController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/busi/controller/BusiSubscribeController.java @@ -53,6 +53,8 @@ public class BusiSubscribeController extends BaseController { @Log(title = "订阅", businessType = BusinessType.INSERT) @PostMapping(value = "/save") public AjaxResult save(@RequestBody BusiSubscribe busiSubscribe) { + Long userId = SecurityUtils.getUserId(); + busiSubscribe.setUserId(userId); busiSubscribeService.saveOrUpdate(busiSubscribe); return success(); }