红果免费短剧 v6.2.3.32版本的 MD5 值为:a6b05492607eab2c8a25f26d2f238ae0

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


package com.bytedance.morpheus.mira.d;

import android.text.TextUtils;
import com.bytedance.accountseal.a.l;
import com.bytedance.mira.log.MiraLogger;
import com.bytedance.morpheus.e;
import org.json.JSONArray;
import org.json.JSONObject;

public class a implements Runnable {

    private boolean f23041a;

    private d f23042b;

    private String a() {
        String d = e.b().d();
        if (TextUtils.isEmpty(d)) {
            return "https://security.snssdk.com/api/plugin/config/v2/";
        }
        return "https://security.snssdk.com/api/plugin/config/v2/?cid=" + d;
    }

    @Override
    public synchronized void run() {
        if (this.f23041a && d.a().e) {
            return;
        }
        if (System.currentTimeMillis() - this.f23042b.f23046a < 300000) {
            return;
        }
        if (!com.bytedance.morpheus.mira.i.d.a(e.b().b())) {
            return;
        }
        for (int i = 0; i < 2; i++) {
            try {
                byte[] a2 = c.a();
                if (a2 != null) {
                    String a3 = e.b().a(33554432, a(), a2, "application/json; charset=utf-8");
                    if (TextUtils.isEmpty(a3)) {
                        MiraLogger.e("Morpheus", "Request plugin failed! response is empty!");
                    } else {
                        JSONObject jSONObject = new JSONObject(a3);
                        com.bytedance.morpheus.mira.g.c.a("pluginSettingRequest", "request: " + new String(a2), "response: " + jSONObject);
                        JSONObject optJSONObject = jSONObject.getJSONObject(l.n).optJSONObject("config");
                        if (optJSONObject != null) {
                            this.f23042b.a(optJSONObject);
                        }
                        JSONArray optJSONArray = jSONObject.getJSONObject(l.n).optJSONArray("plugin");
                        if (optJSONArray != null) {
                            this.f23042b.f23046a = System.currentTimeMillis();
                            this.f23042b.a(optJSONArray);
                        }
                        return;
                    }
                }
            } catch (Exception e) {
                MiraLogger.b("Morpheus", "Request plugin config failed!!!", e);
            }
        }
    }

    public a(d dVar) {
        this.f23041a = false;
        this.f23042b = dVar;
    }

    public a(d dVar, boolean z) {
        this.f23041a = false;
        this.f23041a = z;
        this.f23042b = dVar;
    }
}