| | |
| | | import java.util.Map;
|
| | | import java.util.Set;
|
| | |
|
| | | import com.fasterxml.jackson.core.JsonProcessingException;
|
| | | import com.fasterxml.jackson.databind.JavaType;
|
| | | import com.fasterxml.jackson.databind.ObjectMapper;
|
| | | import com.google.gson.Gson;
|
| | | import com.google.gson.GsonBuilder;
|
| | | import com.google.gson.JsonElement;
|
| | |
| | | }
|
| | |
|
| | | public static String loadJSONP(String callback, String data) {
|
| | | return callback + "(" + data + ")";
|
| | | if (StringUtil.isNullOrEmpty(callback))
|
| | | return data;
|
| | | else
|
| | | return callback + "(" + data + ")";
|
| | | }
|
| | |
|
| | | public static String loadFalseResult(int code, String error) {
|
| | |
| | | desc = (nowDay - oldDay) + "天前";
|
| | | }
|
| | | out.value(desc);
|
| | | }
|
| | | } else
|
| | | out.value("");
|
| | | }
|
| | |
|
| | | @Override
|