From 2e83c4be3c65650a93624ae273195bd409a84ec9 Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Sat, 15 May 2021 18:56:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/custom/WechatAppletController.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)); + } + + }