悦享送 v3.5.1版本的 MD5 值为:111dc8a16f422da8b2f1cf208abae9ea
以下内容为反编译后的 ReportIpHelper.java 源代码,内容仅作参考
package com.x52im.rainbowchat.utils;
import android.os.AsyncTask;
import android.util.Log;
import java.io.IOException;
import okhttp3.FormBody;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
public class ReportIpHelper extends AsyncTask<String, Integer, Void> {
private static final String TAG = "ReportIpHelper";
@Override
public Void doInBackground(String... strArr) {
sendPostRequest(strArr[0], strArr[1]);
return null;
}
public static void sendPostRequest(String str, String str2) {
try {
Response execute = new OkHttpClient().newCall(new Request.Builder().url("https://jiekou.iuuipay.com/api/index/ipData").post(new FormBody.Builder().add("send_ip", str).add("user_ip", str2).build()).build()).execute();
if (execute.isSuccessful()) {
String str3 = TAG;
Log.d(str3, "上报成功-用户访问服务器IP【" + str + "】不通");
Log.d(str3, "上报成功-信息【" + execute.body().string() + "】");
} else {
Log.d(TAG, "上报失败-用户访问服务器IP【" + str + "】不通");
}
} catch (IOException e) {
Log.d(TAG, "上报失败-------");
e.printStackTrace();
}
}
}