|  | @ -2,7 +2,9 @@ package com.yihu.jw.base.service.wx;
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | import com.yihu.jw.base.dao.wx.WxTemplateConfigDao;
 |  | import com.yihu.jw.base.dao.wx.WxTemplateConfigDao;
 | 
												
													
														
															|  | import com.yihu.jw.entity.base.wx.WxTemplateConfigDO;
 |  | import com.yihu.jw.entity.base.wx.WxTemplateConfigDO;
 | 
												
													
														
															|  | 
 |  | import com.yihu.jw.restmodel.web.Envelop;
 | 
												
													
														
															|  | import com.yihu.jw.util.wechat.WeixinMessagePushUtils;
 |  | import com.yihu.jw.util.wechat.WeixinMessagePushUtils;
 | 
												
													
														
															|  | 
 |  | import com.yihu.jw.util.wechat.wxhttp.HttpUtil;
 | 
												
													
														
															|  | import org.slf4j.Logger;
 |  | import org.slf4j.Logger;
 | 
												
													
														
															|  | import org.slf4j.LoggerFactory;
 |  | import org.slf4j.LoggerFactory;
 | 
												
													
														
															|  | import org.springframework.beans.factory.annotation.Autowired;
 |  | import org.springframework.beans.factory.annotation.Autowired;
 | 
												
											
												
													
														
															|  | @ -33,6 +35,13 @@ public class WxTemplateService {
 | 
												
													
														
															|  |         return "success";
 |  |         return "success";
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |     public String  getAllTemp(String wechatId){
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |         String url ="https://api.weixin.qq.com/cgi-bin/template/get_all_private_template?access_token="+wxAccessTokenService.getWxAccessTokenById(wechatId).getAccessToken();
 | 
												
													
														
															|  | 
 |  |         String result = HttpUtil.sendGet(url);
 | 
												
													
														
															|  | 
 |  |         return result;
 | 
												
													
														
															|  | 
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | //    public WxTemplateDO createWxTemplate(WxTemplateDO wxTemplate) {
 |  | //    public WxTemplateDO createWxTemplate(WxTemplateDO wxTemplate) {
 | 
												
													
														
															|  | //        if (StringUtils.isEmpty(wxTemplate.getTemplateId())) {
 |  | //        if (StringUtils.isEmpty(wxTemplate.getTemplateId())) {
 |