浏览代码

关于在页面渲染的过程中包含“null”字符串出现的json格式转换错误的bug

wangyj18 9 年之前
父节点
当前提交
5881fe2a02
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 二进制
      wade-mobile-common/libs/wade-mobile-func.jar
  2. 3 2
      wade-mobile-func/src/com/wade/mobile/func/MobileUI.java

二进制
wade-mobile-common/libs/wade-mobile-func.jar


+ 3 - 2
wade-mobile-func/src/com/wade/mobile/func/MobileUI.java

@ -150,10 +150,11 @@ public class MobileUI extends Plugin {
150 150
			public void run() {
151 151
				try {
152 152
					
153
					// added by wyj,解决在安卓客户端文本框显示null的问题
153
					// added by wyj,replaceAll("null", "\"\""))解决在安卓客户端文本框显示null的问题
154
					// modify by wyj,replaceAll("\"null\"", "\"\"")解决当结果集中包含"null"字符串时,出现了""""的情况
154 155
					Map<?, ?> dataTmp = data;
155 156
					if(data!=null) {
156
						dataTmp = new DataMap(data.toString().replaceAll("null", "\"\""));
157
						dataTmp = new DataMap(data.toString().replaceAll("\"null\"", "\"\"").replaceAll("null", "\"\""));
157 158
					}
158 159
					
159 160
					TemplateWebView webview = initFlipperPage(pageAction, isAnimation);