e80df919
atao
init
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/**
* Copyright (c) 2011-2014, L.cm 卢春梦 (qq596392912@gmail.com).
*
* Licensed under the Apache License, Version 2.0 (the "License");
*/
package com.jfinal.wxaapp.msg;
import com.jfinal.weixin.sdk.utils.JsonUtils;
import com.jfinal.wxaapp.msg.bean.WxaMsg;
public class JsonMsgParser extends MsgModelParser implements IMsgParser {
@Override
public WxaMsg parser(String msgStr) {
MsgModel msgModel = JsonUtils.parse(msgStr, MsgModel.class);
return parserMsg(msgModel);
}
}
|