[JEEWX问题修复] JeeWX开源版2.3几处代码修改。
2016-04-06 18:53
239 查看
【微信公众账号管理】
原始ID一栏不显示( 原因是标签里面对"_"做了处理)
修改: weixin.guanjia.account.entity 类
private java.lang.String weixin_accountid;
改为:
private java.lang.String accountid;
同步 get() set() 方法修改。
修改 WebRoot\webpage\weixin\guanjia\account\*.jsp 中的weixin_accountid。
修改 数据库对应的字段列名。
修改 weixin.guanjia.core.service.impl.WechatService 类 中的 weixin_accountid。
【菜单请求图文信息 】
修改 spring-mvc.xml
找到: <value>newsItemController.do?newscontent</value>
改为: <value>newsItemController.do?newsContent</value>
修改 weixin.guanjia.message.controller.NewsItemController 类
找到: @RequestMapping(params="goContent")
public ModelAndView goContent(HttpServletRequest request){
修改:@RequestMapping(params="newsContent")
public ModelAndView newsContent(HttpServletRequest request){
修改:weixin.guanjia.core.service.impl.WechatService 类
if ("commond".equals(newsTemplate.getType())) {
url = bundler.getString("domain")+ "/newsItemController.do?newscontent&id="+ news.getId();
} else {
url = news.getContent();
}
article.setUrl(url);
article.setDescription(news.getContent());
改为:
if ("common".equals(newsTemplate.getType())) { // 菜单请求文本信息正常,图文信息提示改公众号无法服务
url = bundler.getString("domain")+ "/newsItemController.do?newsContent&id="+ news.getId(); // 点击图片正文跳转后的地址错误问题
} else {
url = news.getContent();
}
article.setUrl(url);
article.setDescription(news.getDescription()); // 单篇图文的时候返回的应该是摘要,返回正文当然后html标记的乱码。
原始ID一栏不显示( 原因是标签里面对"_"做了处理)
修改: weixin.guanjia.account.entity 类
private java.lang.String weixin_accountid;
改为:
private java.lang.String accountid;
同步 get() set() 方法修改。
修改 WebRoot\webpage\weixin\guanjia\account\*.jsp 中的weixin_accountid。
修改 数据库对应的字段列名。
修改 weixin.guanjia.core.service.impl.WechatService 类 中的 weixin_accountid。
【菜单请求图文信息 】
修改 spring-mvc.xml
找到: <value>newsItemController.do?newscontent</value>
改为: <value>newsItemController.do?newsContent</value>
修改 weixin.guanjia.message.controller.NewsItemController 类
找到: @RequestMapping(params="goContent")
public ModelAndView goContent(HttpServletRequest request){
修改:@RequestMapping(params="newsContent")
public ModelAndView newsContent(HttpServletRequest request){
修改:weixin.guanjia.core.service.impl.WechatService 类
if ("commond".equals(newsTemplate.getType())) {
url = bundler.getString("domain")+ "/newsItemController.do?newscontent&id="+ news.getId();
} else {
url = news.getContent();
}
article.setUrl(url);
article.setDescription(news.getContent());
改为:
if ("common".equals(newsTemplate.getType())) { // 菜单请求文本信息正常,图文信息提示改公众号无法服务
url = bundler.getString("domain")+ "/newsItemController.do?newsContent&id="+ news.getId(); // 点击图片正文跳转后的地址错误问题
} else {
url = news.getContent();
}
article.setUrl(url);
article.setDescription(news.getDescription()); // 单篇图文的时候返回的应该是摘要,返回正文当然后html标记的乱码。
相关文章推荐
- jboss-as-7.1.1.Final:(四)Eclipse集成下的自动发布和JSP的热加载
- springMVC中bean容器:bean.xml的配置
- C语言 格式问题
- C# Func<>托付
- java并发编程(一)-线程池
- 使用maven创建项目和cannot change version web module 3.0
- Python自然语言处理:词干、词形与MaxMatch算法
- 使用struts2实现上传下载功能(附代码)。类似于ftp服务器。不止局限于本机的上传下载,其他机器也可使用此功能,服务器似的功能
- 作业四: 结对编程项目---四则运算 程序代码 截图
- 如何删除PDF文档里的空白页
- Java Dictionary Example
- C++Primer_笔记_异常处理
- ActionContext介绍(在Struts2中)
- 设计模式-装饰模式Decorator JAVA示例
- python 访问 zookeeper
- python 访问 zookeeper
- Java代码块
- 解决C# FileUpload上传文件过大的时候出现的错误
- Java 之NIO(四) - 编码解码问题
- Chrome浏览器地址栏访问接口url,重复请求问题解决