本帖最后由 hotllus 于 2009-11-21 20:59 编辑
回复 977# iamxyh
1.用户message字段没有信息 OR null 放
- {"a":[],"b":[],"c":[],"d":[],"e":[]}
复制代码 2.如用户message字段有信息
A.如信息是:
- {"e":[{"id":1257997500,"formulaId":3,"friendId":"305","fName":"\u54aa\u96c5","charm":13,"validTime":0,"msg":"juz for u...hehe...","sendTime":1257997500,"status":2,"x":"39","y":"84","z":"3"},{"id":1258421335,"formulaId":1,"friendId":"361","fName":"\u963f\u5e0c","charm":13,"validTime":0,"msg":"","sendTime":1258421335,"status":2,"x":"-17","y":"114","z":"3"}]}
复制代码 改为这样就正确了:
- {"a":[],"b":[],"c":[],"d":[],"e":[{"id":1257997500,"formulaId":3,"friendId":"305","fName":"\u54aa\u96c5","charm":13,"validTime":0,"msg":"juz for u...hehe...","sendTime":1257997500,"status":2,"x":"39","y":"84","z":"3"},{"id":1258421335,"formulaId":1,"friendId":"361","fName":"\u963f\u5e0c","charm":13,"validTime":0,"msg":"","sendTime":1258421335,"status":2,"x":"-17","y":"114","z":"3"}]}
复制代码 =
{"a":[],"b":[],"c":[],"d":[],"e":[{"id":1257997500,"formulaId":3,"friendId":"305","fName":"\u54aa\u96c5","charm":13,"validTime":0,"msg":"juz for u...hehe...","sendTime":1257997500,"status":2,"x":"39","y":"84","z":"3"},{"id":1258421335,"formulaId":1,"friendId":"361","fName":"\u963f\u5e0c","charm":13,"validTime":0,"msg":"","sendTime":1258421335,"status":2,"x":"-17","y":"114","z":"3"}]}
B.如信息是:
- {"c":[{"fromId":"1","sendTime":1257563698,"eDesc":"\u6211\u68c0\u67e5\u8fc7\u60a8\u7684\u6570\u636e\u5e93\uff0c\u6ca1\u95ee\u9898\u554a\uff1f\u600e\u6837\u8bf4\u4e0d\u53ef\u4ee5\u52a0\u8349\uff1f\u8bf4\u8be6\u7ec6\u4e9b\uff0c\u6bd4\u5982\u600e\u6837\u4e0d\u53ef\u4ee5\u52a0\uff1f\u6709\u6ca1\u63d0\u793a\u4ec0\u4e48\u4e4b\u7c7b\u7684\uff1f","status":1,"id":1257563698,"name":"\u5e73\u51e1\u7684\u50bb\u4ed4"}]}
复制代码 改为这样就正确了:
- {"a":[],"b":[],"c":[{"fromId":"1","sendTime":1257563698,"eDesc":"\u6211\u68c0\u67e5\u8fc7\u60a8\u7684\u6570\u636e\u5e93\uff0c\u6ca1\u95ee\u9898\u554a\uff1f\u600e\u6837\u8bf4\u4e0d\u53ef\u4ee5\u52a0\u8349\uff1f\u8bf4\u8be6\u7ec6\u4e9b\uff0c\u6bd4\u5982\u600e\u6837\u4e0d\u53ef\u4ee5\u52a0\uff1f\u6709\u6ca1\u63d0\u793a\u4ec0\u4e48\u4e4b\u7c7b\u7684\uff1f","status":1,"id":1257563698,"name":"\u5e73\u51e1\u7684\u50bb\u4ed4"}],"d":[],"e":[]}
复制代码 =
{"a":[],"b":[],"c":[{"fromId":"1","sendTime":1257563698,"eDesc":"\u6211\u68c0\u67e5\u8fc7\u60a8\u7684\u6570\u636e\u5e93\uff0c\u6ca1\u95ee\u9898\u554a\uff1f\u600e\u6837\u8bf4\u4e0d\u53ef\u4ee5\u52a0\u8349\uff1f\u8bf4\u8be6\u7ec6\u4e9b\uff0c\u6bd4\u5982\u600e\u6837\u4e0d\u53ef\u4ee5\u52a0\uff1f\u6709\u6ca1\u63d0\u793a\u4ec0\u4e48\u4e4b\u7c7b\u7684\uff1f","status":1,"id":1257563698,"name":"\u5e73\u51e1\u7684\u50bb\u4ed4"}],"d":[],"e":[]}
然后就不会出错了. |