|
@@ -23,6 +23,7 @@ import com.hys.app.model.system.dos.RoleDO;
|
|
|
import com.hys.app.model.system.vo.Menus;
|
|
|
import com.hys.app.pay.ali.AliPayService;
|
|
|
import com.hys.app.pay.ali.PayOrder;
|
|
|
+import com.hys.app.pay.wx.WxConfig;
|
|
|
import com.hys.app.pay.wx.WxPayServiceMy;
|
|
|
import com.hys.app.service.erp.CompanyErpManager;
|
|
|
import com.hys.app.service.erp.OrderCustomerFeeManager;
|
|
@@ -43,6 +44,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServlet;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
@@ -264,11 +266,12 @@ public class PayController extends HttpServlet {
|
|
|
return wxService.getTemplateMsgService().getIndustry();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
@GetMapping("/sendMsg")
|
|
|
public void sendMsg(String openid) throws WxErrorException {
|
|
|
// AdminUser user = adminUserMapper.selectById(1811346086600843265L);
|
|
|
WxMpTemplateMessage templateMessage = WxMpTemplateMessage.builder()
|
|
|
- .toUser("oX5_t6vRCWtD5PKayKweCzl6bTX4openid")
|
|
|
+ .toUser(openid)
|
|
|
.templateId("BmtA7g2Z2KomlIvNS0OtmEVu4ySqPUlSYZNo9zBZxtc")
|
|
|
.build();
|
|
|
|