| | |
| | | package com.dayu.qiheonlinelibrary.net; |
| | | |
| | | import android.os.Handler; |
| | | import android.os.Looper; |
| | | import android.text.TextUtils; |
| | | |
| | | import com.dayu.qiheonlinelibrary.QHOnLineApplication; |
| | | import com.dayu.qiheonlinelibrary.utils.ToastUtil; |
| | | import com.tencent.bugly.crashreport.CrashReport; |
| | | |
| | | import java.io.IOException; |
| | |
| | | */ |
| | | public Response getNullResponse(Request request) { |
| | | // 显示Toast提示 |
| | | new Handler(Looper.getMainLooper()).post(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | ToastUtil.showToastLong(QHOnLineApplication.getInstance().application.getApplicationContext(), "请检查网络!!!"); |
| | | } |
| | | }); |
| | | int code = 20010; |
| | | String message = "咦,请检查网络"; |
| | | String errJson = "{\"code\":" + code + ",\"message\":\"" + message + "\"}"; |