| | |
| | | String data = jsonObject.optString("data"); |
| | | ArrayList<UserData> temp = (ArrayList<UserData>) FastJsonTools.getArrayJson(data, UserData.class); |
| | | dataList.clear(); |
| | | |
| | | dataList.addAll(resetData(temp)); |
| | | |
| | | //重绘 |
| | | reshowChart(dataList); |
| | | tv_value.setText(NumberUtils.getBigDecimalValue(jsonObject.optDouble("avg"), 3) + "uSv"); |
| | |
| | | public void onSuccess(String res, String msg) { |
| | | if (TextUtils.isEmpty(res)) { |
| | | return; |
| | | } |
| | | try { |
| | | }try { |
| | | JSONObject json = new JSONObject(res); |
| | | showAd(json.optString("content"), json.optString("logo"), json.optString("name")); |
| | | } catch (JSONException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | @Override |