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

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


package com.m4399.gamecenter.plugin.main.providers.user.login;

import com.framework.database.tables.HttpFailureTable;
import com.framework.net.ILoadPageEventListener;
import com.framework.providers.NetworkDataProvider;
import com.framework.utils.JSONUtils;
import com.m4399.gamecenter.plugin.main.manager.LoginAuthManager;
import com.m4399.gamecenter.plugin.main.models.user.login.ProtocolModel;
import com.m4399.gamecenter.utils.a;
import java.util.Map;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.json.JSONObject;

@Metadata(d1 = {"\u0000N\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u000e\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010%\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J,\u0010\u001c\u001a\u00020\u001d2\b\u0010\u001e\u001a\u0004\u0018\u00010\u00042\u0018\u0010\u001f\u001a\u0014\u0012\u0006\u0012\u0004\u0018\u00010!\u0012\u0006\u0012\u0004\u0018\u00010!\u0018\u00010 H\u0014J\b\u0010\"\u001a\u00020\u001dH\u0014J\b\u0010#\u001a\u00020\bH\u0014J\b\u0010$\u001a\u00020%H\u0014J\b\u0010&\u001a\u00020\bH\u0016J\u0012\u0010'\u001a\u00020\u001d2\b\u0010(\u001a\u0004\u0018\u00010)H\u0016J\u0012\u0010*\u001a\u00020\u001d2\b\u0010+\u001a\u0004\u0018\u00010,H\u0014R\u001e\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0004@BX\u0086\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007R\u001e\u0010\t\u001a\u00020\b2\u0006\u0010\u0003\u001a\u00020\b@BX\u0086\u000e¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\nR\u001e\u0010\u000b\u001a\u00020\b2\u0006\u0010\u0003\u001a\u00020\b@BX\u0086\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\nR\u001e\u0010\f\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0004@BX\u0086\u000e¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u0007R\u001e\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\u0003\u001a\u00020\u000e@BX\u0086\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u0011R\u001e\u0010\u0012\u001a\u00020\u000e2\u0006\u0010\u0003\u001a\u00020\u000e@BX\u0086\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0011R\u001e\u0010\u0014\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0004@BX\u0086\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u0015\u0010\u0007R\u001e\u0010\u0016\u001a\u00020\u000e2\u0006\u0010\u0003\u001a\u00020\u000e@BX\u0086\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0011R\u001e\u0010\u0018\u001a\u00020\u000e2\u0006\u0010\u0003\u001a\u00020\u000e@BX\u0086\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u0011R\u001e\u0010\u001a\u001a\u00020\u000e2\u0006\u0010\u0003\u001a\u00020\u000e@BX\u0086\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u001b\u0010\u0011¨\u0006-"}, d2 = {"Lcom/m4399/gamecenter/plugin/main/providers/user/login/LoginConfigDp;", "Lcom/framework/providers/NetworkDataProvider;", "()V", "<set-?>", "", "forgetPasswordUrl", "getForgetPasswordUrl", "()Ljava/lang/String;", "", "isForceCheckedAgreement", "()Z", "isHideRegister", "loginFeedbackUrl", "getLoginFeedbackUrl", "Lcom/m4399/gamecenter/plugin/main/models/user/login/ProtocolModel;", "mobileProtocolModel", "getMobileProtocolModel", "()Lcom/m4399/gamecenter/plugin/main/models/user/login/ProtocolModel;", "privacyProtocolModel", "getPrivacyProtocolModel", "registerFeedbackUrl", "getRegisterFeedbackUrl", "telecomProtocolModel", "getTelecomProtocolModel", "unicomProtocolModel", "getUnicomProtocolModel", "userProtocolModel", "getUserProtocolModel", "buildRequestParams", "", "url", HttpFailureTable.COLUMN_PARAMS, "", "", "clearAllData", "enableCache", "getHostType", "", "isEmpty", "loadData", "listener", "Lcom/framework/net/ILoadPageEventListener;", "parseResponseData", "content", "Lorg/json/JSONObject;", "plugin_main_user_release"}, k = 1, mv = {1, 6, 0}, xi = 48)
public final class LoginConfigDp extends NetworkDataProvider {
    private boolean dJM;
    private ProtocolModel dJN = new ProtocolModel("用户协议", "https://www.4399.cn/help/LicensingAgreement.html");
    private ProtocolModel dJO = new ProtocolModel("隐私政策", "https://www.4399.cn/help/PrivacyAgreement.html");
    private ProtocolModel dJP = new ProtocolModel("中国移动认证服务条款", "https://wap.cmpassport.com/resources/html/contract.html");
    private ProtocolModel dJQ = new ProtocolModel("中国电信认证服务条款", "https://e.189.cn/sdk/agreement/detail.do?hidetop=true");
    private ProtocolModel dJR = new ProtocolModel("中国联通认证服务条款", "https://opencloud.wostore.cn//authz//resource//html//disclaimer.html?fromsdk=true");
    private String dJS = "https://my.4399.com/feedback/uc?appId=c98c41078b11eaa49b3d5c4d392dd42d&type=log";
    private String dJT = "https://my.4399.com/feedback/uc?appId=c98c41078b11eaa49b3d5c4d392dd42d&type=reg";
    private String dJU = "https://anquan.4399.com/pwd/?from=phone";
    private boolean dJV;

    @Override
    protected boolean enableCache() {
        return false;
    }

    @Override
    public int getHostType() {
        return 1;
    }

    @Override
    public boolean isEmpty() {
        return false;
    }

    public final boolean getDJM() {
        return this.dJM;
    }

    public final ProtocolModel getDJN() {
        return this.dJN;
    }

    public final ProtocolModel getDJO() {
        return this.dJO;
    }

    public final ProtocolModel getDJP() {
        return this.dJP;
    }

    public final ProtocolModel getDJQ() {
        return this.dJQ;
    }

    public final ProtocolModel getDJR() {
        return this.dJR;
    }

    public final String getDJS() {
        return this.dJS;
    }

    public final String getDJT() {
        return this.dJT;
    }

    public final String getDJU() {
        return this.dJU;
    }

    public final boolean getDJV() {
        return this.dJV;
    }

    @Override
    public void clearAllData() {
        this.dJM = false;
        this.dJV = false;
    }

    @Override
    public void loadData(ILoadPageEventListener listener) {
        super.loadData("user/box/android/v1.1/config-login.html", 1, listener);
    }

    @Override
    public void parseResponseData(JSONObject content) {
        this.dJM = JSONUtils.getBoolean("registrationHide", content, false);
        String string = JSONUtils.getString("feedbackLogin", content);
        Intrinsics.checkNotNullExpressionValue(string, "getString(\"feedbackLogin\", content)");
        this.dJS = string;
        String string2 = JSONUtils.getString("feedbackRegister", content);
        Intrinsics.checkNotNullExpressionValue(string2, "getString(\"feedbackRegister\", content)");
        this.dJT = string2;
        String string3 = JSONUtils.getString("retrieve_pwd", content);
        Intrinsics.checkNotNullExpressionValue(string3, "getString(\"retrieve_pwd\", content)");
        this.dJU = string3;
        JSONObject jSONObject = JSONUtils.getJSONObject("protocol", content);
        this.dJV = JSONUtils.getInt("mode", jSONObject) == 2;
        JSONObject jSONObject2 = JSONUtils.getJSONObject("message", jSONObject);
        this.dJN.parse(JSONUtils.getJSONObject("user_agreement", jSONObject2));
        this.dJO.parse(JSONUtils.getJSONObject("privacy policy", jSONObject2));
        this.dJP.parse(JSONUtils.getJSONObject("china_mobile", jSONObject2));
        this.dJQ.parse(JSONUtils.getJSONObject("china_telecom", jSONObject2));
        this.dJR.parse(JSONUtils.getJSONObject("china_unicom", jSONObject2));
        LoginAuthManager.INSTANCE.getInstance().initData(content);
    }

    @Override
    protected void buildRequestParams(String url, Map<Object, Object> params) {
        if (params == null) {
            return;
        }
        params.put("channel", a.getApkOriginChannel());
    }
}