Warkop v5.73.0版本的 MD5 值为:a4330ec2d6f5e146f59fc7622f3cdb45

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


package vh;

import com.shield.android.ShieldException;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONObject;
import vh.f;

public class m extends f {

    private final String f163229a;

    private final String f163230b;

    private final th.b f163231c;

    public JSONObject f163232d;

    private final String f163233e;

    public ShieldException f163234f;

    private String f163235g;

    private boolean f163236h;

    public m(String str, String str2, String str3, boolean z15, th.b bVar) {
        new HashMap();
        this.f163229a = str;
        this.f163230b = str2;
        this.f163233e = str3;
        this.f163231c = bVar;
        this.f163236h = z15;
    }

    @Override
    public String a() {
        if ("STAGING".equalsIgnoreCase(this.f163233e)) {
            return "https://svc-discovery-staging.shield.com";
        }
        return "https://service-discovery.shield.com";
    }

    @Override
    public void b(ShieldException shieldException) {
        if (shieldException.f32996d == ShieldException.a.HTTP) {
            this.f163231c.b(shieldException, "%s - %s", shieldException.f32998f, shieldException.f32999g);
        } else {
            this.f163231c.b(shieldException, shieldException.f32998f, new Object[0]);
        }
        this.f163234f = shieldException;
    }

    @Override
    public void c(String str) {
        try {
            th.b.d(com.shield.android.c.f33050c).a(str, new Object[0]);
            this.f163234f = null;
            th.f.a().i(str, new Object[0]);
            this.f163232d = new JSONObject(str);
        } catch (Exception e15) {
            this.f163234f = ShieldException.c(e15);
        }
    }

    @Override
    public f.a d() {
        return f.a.GET;
    }

    @Override
    public HashMap<String, String> e() {
        HashMap<String, String> hashMap = new HashMap<>();
        long currentTimeMillis = System.currentTimeMillis() / 1000;
        hashMap.put("Timestamp", String.valueOf(currentTimeMillis));
        hashMap.put("Site-Id", this.f163229a);
        hashMap.put("Shield-Signature", e.a(Long.valueOf(currentTimeMillis), this.f163229a, this.f163230b));
        return hashMap;
    }

    @Override
    public Map<String, Object> f() {
        return null;
    }

    @Override
    public f.b g() {
        return null;
    }

    @Override
    public String h() {
        return this.f163229a;
    }

    @Override
    public String i() {
        if (this.f163236h) {
            return String.format("/discovery/v1/endpoint/fallback?sid=%s&created=" + System.currentTimeMillis(), this.f163229a);
        }
        return String.format("/discovery/v1/endpoint?sid=%s", this.f163229a);
    }

    @Override
    public String j() {
        return this.f163235g;
    }
}