您的位置:首页 > 编程语言

[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标记的乱码。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: