[JEEWX问题修复] JeeWX开源版2.3几处代码修改。
生活随笔
收集整理的這篇文章主要介紹了
[JEEWX问题修复] JeeWX开源版2.3几处代码修改。
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
【微信公眾賬號(hào)管理】
原始ID一欄不顯示( 原因是標(biāo)簽里面對(duì)"_"做了處理)
修改:??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。
修改? ???數(shù)據(jù)庫(kù)對(duì)應(yīng)的字段列名。
修改? ???weixin.guanjia.core.service.impl.WechatService 類 中的??weixin_accountid。
【菜單請(qǐng)求圖文信息 】
修改??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())) {??// 菜單請(qǐng)求文本信息正常,圖文信息提示改公眾號(hào)無法服務(wù)
? ? ? ? ? ? ? ? url = bundler.getString("domain")+ "/newsItemController.do?newsContent&id="+ news.getId(); // 點(diǎn)擊圖片正文跳轉(zhuǎn)后的地址錯(cuò)誤問題
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? } else {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? url = news.getContent();
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? }
? ? ? ? article.setUrl(url);
? ? ? ? article.setDescription(news.getDescription()); // 單篇圖文的時(shí)候返回的應(yīng)該是摘要,返回正文當(dāng)然后html標(biāo)記的亂碼。
原始ID一欄不顯示( 原因是標(biāo)簽里面對(duì)"_"做了處理)
修改:??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。
修改? ???數(shù)據(jù)庫(kù)對(duì)應(yīng)的字段列名。
修改? ???weixin.guanjia.core.service.impl.WechatService 類 中的??weixin_accountid。
【菜單請(qǐng)求圖文信息 】
修改??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())) {??// 菜單請(qǐng)求文本信息正常,圖文信息提示改公眾號(hào)無法服務(wù)
? ? ? ? ? ? ? ? url = bundler.getString("domain")+ "/newsItemController.do?newsContent&id="+ news.getId(); // 點(diǎn)擊圖片正文跳轉(zhuǎn)后的地址錯(cuò)誤問題
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? } else {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? url = news.getContent();
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? }
? ? ? ? article.setUrl(url);
? ? ? ? article.setDescription(news.getDescription()); // 單篇圖文的時(shí)候返回的應(yīng)該是摘要,返回正文當(dāng)然后html標(biāo)記的亂碼。
總結(jié)
以上是生活随笔為你收集整理的[JEEWX问题修复] JeeWX开源版2.3几处代码修改。的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ccf 无线网络
- 下一篇: hihocoder 1107 : Sho