| | |
| | | public void onSuccess(String s, Call call, Response response) { |
| | | XLog.e("result:" + s); |
| | | try { |
| | | JSONObject jsonObject = new JSONObject(s); |
| | | JSONObject resJosn= new JSONObject(s); |
| | | JSONObject jsonObject = resJosn.getJSONObject("data"); |
| | | int errno = jsonObject.optInt("code"); |
| | | String message = jsonObject.optString("desc"); |
| | | String message = jsonObject.optString("msg"); |
| | | if(errno == 0){ |
| | | httpCallBack.onSuccess(jsonObject.optString("content"),message); |
| | | httpCallBack.onSuccess(jsonObject.optString("info"),message); |
| | | }else{ |
| | | httpCallBack.onFail(errno,message); |
| | | } |
| | |
| | | public void onSuccess(String s, Call call, Response response) { |
| | | XLog.e("result:" + s); |
| | | try { |
| | | JSONObject jsonObject = new JSONObject(s); |
| | | JSONObject resJosn= new JSONObject(s); |
| | | JSONObject jsonObject = resJosn.getJSONObject("data"); |
| | | int errno = jsonObject.optInt("code"); |
| | | String message = jsonObject.optString("desc"); |
| | | String message = jsonObject.optString("msg"); |
| | | if(errno == 0){ |
| | | httpCallBack.onSuccess(jsonObject.optString("content"),message); |
| | | httpCallBack.onSuccess(jsonObject.optString("info"),message); |
| | | }else{ |
| | | httpCallBack.onFail(errno,message); |
| | | } |
| | |
| | | public void onSuccess(String s, Call call, Response response) { |
| | | XLog.e("result:" + s); |
| | | try { |
| | | JSONObject jsonObject = new JSONObject(s); |
| | | int errno = jsonObject.optInt("errno"); |
| | | String message = jsonObject.optString("message"); |
| | | JSONObject resJosn= new JSONObject(s); |
| | | JSONObject jsonObject = resJosn.getJSONObject("data"); |
| | | int errno = jsonObject.optInt("code"); |
| | | String message = jsonObject.optString("msg"); |
| | | if(errno == 0){ |
| | | uploadCallBack.onSuccess(jsonObject.optString("data"),message); |
| | | uploadCallBack.onSuccess(jsonObject.optString("info"),message); |
| | | }else{ |
| | | uploadCallBack.onFail(message); |
| | | } |
| | |
| | | public void onSuccess(String s, Call call, Response response) { |
| | | XLog.e("result:" + s); |
| | | try { |
| | | JSONObject jsonObject = new JSONObject(s); |
| | | int errno = jsonObject.optInt("errno"); |
| | | String message = jsonObject.optString("message"); |
| | | JSONObject resJosn= new JSONObject(s); |
| | | JSONObject jsonObject = resJosn.getJSONObject("data"); |
| | | int errno = jsonObject.optInt("code"); |
| | | String message = jsonObject.optString("msg"); |
| | | if(errno == 0){ |
| | | uploadCallBack.onSuccess(jsonObject.optString("data"),message); |
| | | uploadCallBack.onSuccess(jsonObject.optString("info"),message); |
| | | }else{ |
| | | uploadCallBack.onFail(message); |
| | | } |