得物.apk(点击下载) / p.java


package ec;

import android.app.Application;
import bc.a;
import com.ishumei.smantifraud.SmAntiFraud;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.shizhuang.duapp.libs.poizon_analysis.OnErrorListener;
import com.shizhuang.dudatastatistics.factory.PoizonAnalyzeFactory;
import com.shizhuang.dudatastatistics.tracker.ISensorGlobalProperties;
import com.shizhuang.stone.SZStone;
import df.b0;
import df.j;
import fd.n;
import nd.e;
import org.jetbrains.annotations.NotNull;
import org.json.JSONException;
import org.json.JSONObject;
import qc.f;
import up.b;

/* compiled from: PoizonAnalyzeTask */
public class p extends a {
    private static final String[] DEFAULT_WHITE_LIST_ARRAY = {"trade_block_content_click_300000_6", "trade_block_content_click_300000_60", "trade_block_content_exposure_300000_6", "trade_block_content_exposure_300000_10", "trade_product_detail_size_choose_400000_408", "trade_product_detail_pageview_400000", "trade_product_pruchase_click_400004_411", "trade_recommend_feed_exposure_300000_9", "trade_product_collect_success_47", "trade_product_collect_cancel_47", "trade_product_bid_click_400000_20", "common_collect_product_delete_46", "trade_recommend_feed_exposure_300000_35", "trade_search_result_click_36_72", "trade_search_result_expouse_36_72", "trade_search_key_word_click_51", "trade_product_detail_page_share_400000", "trade_search_result_click_36_62", "trade_search_result_expouse_36_62", "community_recommend_feed_negative_feedback_click_89", "trade_recommend_feed_negative_feedback_click_300000_9", "common_other_app_start", "community_circle_click_103_134", "community_content_exposure_15_137", "community_circle_click_89_137", "community_circle_click_103_136", "community_circle_follow_click_95_148", "community_circle_click_95_148", "community_content_like_click_9_145", "community_content_like_click_89_137", "community_circle_follow_click_95_96", "community_content_click_89_137", "community_content_exposure_89_137", "community_content_pageview_9", "community_circle_follow_click_95_94", "community_content_share_click_9_145", "community_circle_click_9_145", "community_circle_click_102_149", "community_circle_click_95_96", "community_circle_click_95_94", "community_user_follow_click_9_145", "community_content_like_click_9_139", "community_content_share_platform_click_9_145", "community_content_exposure_102_137", "community_block_click_103_201", "community_video_play_click_9_145", "community_comment_click_9_145", "poizon_third_login_block_click_419_596", "common_collect_outfits_click_46_601", "common_collect_outfits_exposure_46_601"};
    public static ChangeQuickRedirect changeQuickRedirect;
    public final String n;

    public p(Application application, String str) {
        super(application, "TASK_POIZON_ANALYZE", true);
        this.n = str;
    }

    @Override // dp.g
    public void i(@NotNull String str) {
        String[] strArr;
        if (!PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 1326, new Class[]{String.class}, Void.TYPE).isSupported) {
            int d = n.d("sensorConfig", "networkPolicy", 3);
            int d12 = n.d("sensorConfig", "bulkSize", 100);
            int d13 = n.d("sensorConfig", "flushInterval", 15000);
            boolean a5 = n.a("whiteList", "enable", true);
            boolean z = !n.a("sensorConfig", "sensorGlobalClick", true) ? 1 : 0;
            long e = n.e("whiteList", "interval", 0);
            b bVar = new b();
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{"https://sensors.dewu.com/sa?project=production"}, bVar, b.changeQuickRedirect, false, 35389, new Class[]{String.class}, b.class);
            if (proxy.isSupported) {
                bVar = (b) proxy.result;
            } else {
                bVar.b = "https://sensors.dewu.com/sa?project=production";
            }
            PatchProxyResult proxy2 = PatchProxy.proxy(new Object[]{"https://sensors.dewu.com/sa?project=default"}, bVar, b.changeQuickRedirect, false, 35390, new Class[]{String.class}, b.class);
            if (proxy2.isSupported) {
                bVar = (b) proxy2.result;
            } else {
                bVar.f39042c = "https://sensors.dewu.com/sa?project=default";
            }
            b bVar2 = bVar;
            PatchProxyResult proxy3 = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 1327, new Class[0], String[].class);
            if (proxy3.isSupported) {
                strArr = (String[]) proxy3.result;
            } else {
                String str2 = (String) b0.f("POIZON_ANALYSIS_WHITE_LIST", "");
                if (str2.isEmpty()) {
                    strArr = DEFAULT_WHITE_LIST_ARRAY;
                } else {
                    try {
                        strArr = (String[]) e.h(new JSONObject(str2).optString("events"), new o(this).getType());
                    } catch (JSONException unused) {
                        strArr = DEFAULT_WHITE_LIST_ARRAY;
                    }
                }
            }
            PatchProxyResult proxy4 = PatchProxy.proxy(new Object[]{strArr}, bVar2, b.changeQuickRedirect, false, 35383, new Class[]{String[].class}, b.class);
            if (proxy4.isSupported) {
                bVar2 = (b) proxy4.result;
            } else {
                bVar2.i = strArr;
            }
            Object[] objArr = {new Byte(a5 ? (byte) 1 : 0), new Long(e)};
            ChangeQuickRedirect changeQuickRedirect2 = b.changeQuickRedirect;
            Class cls = Boolean.TYPE;
            PatchProxyResult proxy5 = PatchProxy.proxy(objArr, bVar2, changeQuickRedirect2, false, 35384, new Class[]{cls, Long.TYPE}, b.class);
            if (proxy5.isSupported) {
                bVar2 = (b) proxy5.result;
            } else {
                bVar2.j = a5;
                bVar2.k = e;
            }
            Object[] objArr2 = {new Integer(d)};
            ChangeQuickRedirect changeQuickRedirect3 = b.changeQuickRedirect;
            Class cls2 = Integer.TYPE;
            PatchProxyResult proxy6 = PatchProxy.proxy(objArr2, bVar2, changeQuickRedirect3, false, 35382, new Class[]{cls2}, b.class);
            if (proxy6.isSupported) {
                bVar2 = (b) proxy6.result;
            } else {
                bVar2.d = d;
            }
            PatchProxyResult proxy7 = PatchProxy.proxy(new Object[]{new Integer(d12)}, bVar2, b.changeQuickRedirect, false, 35386, new Class[]{cls2}, b.class);
            if (proxy7.isSupported) {
                bVar2 = (b) proxy7.result;
            } else {
                bVar2.f39043g = d12;
            }
            PatchProxyResult proxy8 = PatchProxy.proxy(new Object[]{new Integer(d13)}, bVar2, b.changeQuickRedirect, false, 35385, new Class[]{cls2}, b.class);
            if (proxy8.isSupported) {
                bVar2 = (b) proxy8.result;
            } else {
                bVar2.f = d13;
            }
            n nVar = n.f31787a;
            PatchProxyResult proxy9 = PatchProxy.proxy(new Object[]{nVar}, bVar2, b.changeQuickRedirect, false, 35391, new Class[]{OnErrorListener.class}, b.class);
            if (proxy9.isSupported) {
                bVar2 = (b) proxy9.result;
            } else {
                bVar2.f39044h = nVar;
            }
            if (qc.b.f37325a && f.i()) {
                boolean z4 = b0.i("sensor_server_switch").getBoolean("isOnline", false);
                PatchProxyResult proxy10 = PatchProxy.proxy(new Object[]{new Byte(z4 ? (byte) 1 : 0)}, bVar2, b.changeQuickRedirect, false, 35388, new Class[]{cls}, b.class);
                if (proxy10.isSupported) {
                    b bVar3 = (b) proxy10.result;
                } else {
                    bVar2.e = z4;
                }
            }
            if (!PatchProxy.proxy(new Object[]{new Byte(z ? (byte) 1 : 0)}, bVar2, b.changeQuickRedirect, false, 35359, new Class[]{cls}, Void.TYPE).isSupported) {
                bVar2.f39041a = z;
            }
            Application application = this.m;
            boolean z5 = qc.b.f37325a;
            if (!PatchProxy.proxy(new Object[]{application, new Byte(z5 ? (byte) 1 : 0), bVar2}, null, up.a.changeQuickRedirect, true, 35357, new Class[]{Application.class, cls, b.class}, Void.TYPE).isSupported) {
                PoizonAnalyzeFactory.f26183a.c(bVar2);
                PoizonAnalyzeFactory.a().init(application, z5);
            }
            ISensorGlobalProperties iSensorGlobalProperties = PoizonAnalyzeFactory.a().getISensorGlobalProperties();
            Application application2 = this.m;
            iSensorGlobalProperties.init(application2, this.n, SZStone.getStoneSync(application2), qf1.a.i(), qf1.a.h());
            PoizonAnalyzeFactory.a().getISensorGlobalProperties().setIMEI(j.g().f()).setOAID(j.g().h()).setShumeiID(SmAntiFraud.getDeviceId()).refresh();
        }
    }
}