4399游戏盒 v7.2.1.31版本的 MD5 值为:951717f45e3fda95c8a358caf4ca93e1

以下内容为反编译后的 k.java 源代码,内容仅作参考


package cn.m4399.diag.a;

import android.text.TextUtils;
import cn.m4399.diag.api.Report;
import org.json.JSONObject;

public class k implements cn.m4399.diag.api.a {
    public final JSONObject a() {
        return a.a.a.b.c.b.b().a("http://who.wangsu.com/?key=wstong&form=json").c();
    }

    @Override
    public Report make(String... strArr) {
        Report report = new Report(name());
        JSONObject a2 = a();
        if (a2 != null) {
            String optString = a2.optString("cli", "");
            if (!TextUtils.isEmpty(optString)) {
                report.withOutput("(Provided by WangSu)").withOutput("IP     : " + optString).withOutput("DNS    : " + a2.optJSONArray("dns")).withOutput("Proxy  : " + a2.optString("proxy", "")).withResult(true);
            } else {
                report.withOutput("IP     : " + optString);
            }
            return report;
        }
        return report.withOutput("No result, check your APIS for requesting external ip");
    }

    @Override
    public String name() {
        return "User IP";
    }
}