沈斌
2018-05-15 4eb9bd2cd9921386de8caec224cdb7405196472d
app/src/main/java/com/moral/yunfushao/httputils/HttpUtils.java
@@ -137,6 +137,7 @@
                        XLog.e("result:" + s);
                        try {
                            JSONObject resJosn= new JSONObject(s);
                            if(resJosn.has("data")) {
                            JSONObject jsonObject = resJosn.getJSONObject("data");
                            int errno = jsonObject.optInt("code");
                            String message = jsonObject.optString("msg");
@@ -145,6 +146,7 @@
                            }else{
                                httpCallBack.onFail(errno,message);
                            }
                            }
                        } catch (JSONException e) {
                            e.printStackTrace();
                        }