diff --git a/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/WechatAppletController.java b/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/WechatAppletController.java index ca5f444da..c04e5838e 100644 --- a/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/WechatAppletController.java +++ b/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/WechatAppletController.java @@ -563,7 +563,7 @@ public class WechatAppletController extends BaseController { } @GetMapping("/subscribe") - public AjaxResult subscribe(@RequestParam String customerId, Long planId, Integer subscribed) { + public AjaxResult subscribe(@RequestParam String customerId, @RequestParam Long planId, @RequestParam Integer subscribed) { // Long cusId = StringUtils.isNotEmpty(customerId) ? Long.parseLong(AesUtils.decrypt(customerId)) : 0L; SysRecipesPlan info = new SysRecipesPlan(); @@ -574,6 +574,12 @@ public class WechatAppletController extends BaseController { } + @GetMapping("/subscribe/post") + public AjaxResult subscribePost(@RequestParam Long cusId, @RequestParam Long planId, @RequestParam String name, @RequestParam String startDate, @RequestParam String endDate, @RequestParam String remark) { + return AjaxResult.success(iWechatAppletService.postRecipesMessage(cusId, planId, name, startDate, endDate, remark)); + } + + }