回调函数去除多余功能
This commit is contained in:
parent
f0cd3c9bf6
commit
6982f3ec9a
@ -6,6 +6,7 @@ import cn.hutool.json.JSONObject;
|
|||||||
import com.suisung.mall.common.api.CommonResult;
|
import com.suisung.mall.common.api.CommonResult;
|
||||||
import com.suisung.mall.common.exception.ApiException;
|
import com.suisung.mall.common.exception.ApiException;
|
||||||
import com.suisung.mall.common.utils.I18nUtil;
|
import com.suisung.mall.common.utils.I18nUtil;
|
||||||
|
import com.suisung.mall.shop.message.service.ShopMessageTemplateService;
|
||||||
import com.suisung.mall.shop.wechat.service.WxQrCodeService;
|
import com.suisung.mall.shop.wechat.service.WxQrCodeService;
|
||||||
import com.suisung.mall.shop.wechat.service.WxURLSchemeService;
|
import com.suisung.mall.shop.wechat.service.WxURLSchemeService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
@ -26,6 +27,9 @@ public class WxQrCodeContorller {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private WxURLSchemeService wxURLSchemeService;
|
private WxURLSchemeService wxURLSchemeService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ShopMessageTemplateService shopMessageTemplateService;
|
||||||
|
|
||||||
@ApiOperation(value = "获取小程序码", notes = "获取小程序码")
|
@ApiOperation(value = "获取小程序码", notes = "获取小程序码")
|
||||||
@RequestMapping(value = "/getWxQrCode", method = RequestMethod.POST)
|
@RequestMapping(value = "/getWxQrCode", method = RequestMethod.POST)
|
||||||
public CommonResult getWxQrCode(@RequestParam(value = "preparedUrl") String preparedUrl,
|
public CommonResult getWxQrCode(@RequestParam(value = "preparedUrl") String preparedUrl,
|
||||||
@ -49,5 +53,13 @@ public class WxQrCodeContorller {
|
|||||||
public CommonResult generateCommonWxUrlScheme() {
|
public CommonResult generateCommonWxUrlScheme() {
|
||||||
return wxURLSchemeService.generateCommonWxUrlScheme();
|
return wxURLSchemeService.generateCommonWxUrlScheme();
|
||||||
}
|
}
|
||||||
|
@PostMapping(value = "/common/sendMessage")
|
||||||
|
public CommonResult sendMessage() {
|
||||||
|
shopMessageTemplateService.sendToXcxAllUserMessage();//平台店铺消息推送
|
||||||
|
shopMessageTemplateService.sendToXcxShopMemberUserMessage();//店铺消息订阅发送
|
||||||
|
return wxURLSchemeService.generateCommonWxUrlScheme();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user