mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
暂时去掉jackson代码,用于展示数据的代码放在客户端比较好些
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
package me.chanjar.weixin.mp.util.json;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.text.Format;
|
||||
|
||||
import org.apache.commons.lang3.time.FastDateFormat;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonGenerator;
|
||||
import com.fasterxml.jackson.databind.JsonSerializer;
|
||||
import com.fasterxml.jackson.databind.SerializerProvider;
|
||||
|
||||
/**
|
||||
* Created by Binary Wang on 2016/7/13.
|
||||
*/
|
||||
public class WxLongTimeJsonSerializer extends JsonSerializer<Long> {
|
||||
private static Format DF = FastDateFormat.getInstance(
|
||||
"yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
@Override
|
||||
public void serialize(Long value, JsonGenerator gen,
|
||||
SerializerProvider serializers)
|
||||
throws IOException {
|
||||
gen.writeString(DF.format(value * 1000));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user