package hn; import com.tencent.luggage.sdk.processes.LuggageServiceType; import com.tencent.mm.plugin.appbrand.app.a0; import com.tencent.mm.plugin.appbrand.appcache.predownload.p; import com.tencent.mm.plugin.appbrand.appcache.predownload.w; import com.tencent.mm.plugin.appbrand.service.m1; import com.tencent.mm.plugin.appbrand.task.AppBrandProcessesManager; import com.tencent.mm.plugin.scanner.EventScanCodeTryPreloadWxaAttrsBeforeA8Key; import com.tencent.mm.sdk.event.IStaticListener; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.mm.sdk.platformtools.Util; import d60.z; import ie1.h; import java.util.concurrent.ConcurrentHashMap; import java.util.regex.Matcher; import java.util.regex.Pattern; import lh4.m; import yz3.j; public class a1 extends IStaticListener<EventScanCodeTryPreloadWxaAttrsBeforeA8Key> { /* JADX DEBUG: Method arguments types fixed to match base method, original types: [com.tencent.mm.sdk.event.IEvent] */ /* JADX WARNING: Removed duplicated region for block: B:23:0x0080 A[Catch:{ Exception -> 0x0086 }] */ /* JADX WARNING: Removed duplicated region for block: B:24:0x0081 A[Catch:{ Exception -> 0x0086 }] */ /* JADX WARNING: Removed duplicated region for block: B:43:0x0154 */ @Override // com.tencent.mm.sdk.event.IStaticListener public boolean callback(EventScanCodeTryPreloadWxaAttrsBeforeA8Key eventScanCodeTryPreloadWxaAttrsBeforeA8Key) { boolean z15; Matcher matcher; boolean z16; EventScanCodeTryPreloadWxaAttrsBeforeA8Key eventScanCodeTryPreloadWxaAttrsBeforeA8Key2 = eventScanCodeTryPreloadWxaAttrsBeforeA8Key; if (z.a()) { ((p) j.c(p.class)).getClass(); a0.b bVar = a0.b.SCAN_WEAPP_QRCODE; m.g(eventScanCodeTryPreloadWxaAttrsBeforeA8Key2, "event"); String str = eventScanCodeTryPreloadWxaAttrsBeforeA8Key2.f143023e; boolean z17 = true; if (str == null || str.length() == 0) { z15 = true; } else { z15 = false; } if (!z15) { if (eventScanCodeTryPreloadWxaAttrsBeforeA8Key2.f143024f != 22 || ((h) j.c(h.class)).Xj0(h.c.f232301r8, 1) <= 0) { String str2 = eventScanCodeTryPreloadWxaAttrsBeforeA8Key2.f143023e; m.f(str2, "event.qbarString"); Pattern pattern = null; try { String pi5 = ((h) j.c(h.class)).pi(h.c.f232337s8, "https://mp.weixin.qq.com/a/.*"); Log.i("MicroMsg.AppBrand.QRCodeDataPatternForWxa", "get by config, get pattern " + pi5); if (pi5 != null) { if (pi5.length() != 0) { z16 = false; if (z16) { pattern = Pattern.compile(pi5); } if (pattern == null || (matcher = pattern.matcher(str2)) == null || !matcher.find()) { z17 = false; } Log.i("MicroMsg.AppBrand.QRCodeDataPatternForWxa", "matched:" + z17 + ", str:" + str2); if (!z17) { if (eventScanCodeTryPreloadWxaAttrsBeforeA8Key2.f143024f == 22) { AppBrandProcessesManager.f94863g.a().U(LuggageServiceType.WASERVICE, m1.I); a0.ZN0(bVar); } } } } z16 = true; if (z16) { } } catch (Exception e15) { Log.e("MicroMsg.AppBrand.QRCodeDataPatternForWxa", "get by config, get exception " + e15); } z17 = false; Log.i("MicroMsg.AppBrand.QRCodeDataPatternForWxa", "matched:" + z17 + ", str:" + str2); if (!z17) { } } Log.i("MicroMsg.AppBrand.PreDownloadServiceExportImpl", "preloadByQBarRawString with string:" + eventScanCodeTryPreloadWxaAttrsBeforeA8Key2.f143023e + ", codeType:" + eventScanCodeTryPreloadWxaAttrsBeforeA8Key2.f143024f + ", codeVersion:" + eventScanCodeTryPreloadWxaAttrsBeforeA8Key2.f143025g); w wVar = w.f84277a; String str3 = eventScanCodeTryPreloadWxaAttrsBeforeA8Key2.f143023e; m.f(str3, "event.qbarString"); ConcurrentHashMap<String, Long> concurrentHashMap = w.f84281e; Long l15 = concurrentHashMap.get(str3); if (l15 == null) { l15 = 0L; } long longValue = l15.longValue(); if (Util.milliSecondsToNow(longValue) < w.f84282f) { Log.i("MicroMsg.WxaAttributesBatchPreLoader", "preloadByQBarRawString with qbarString:" + str3 + ", hit interval control, lastPreloadTimestamp:" + longValue); } else { concurrentHashMap.put(str3, Long.valueOf(Util.nowMilliSecond())); new com.tencent.mm.plugin.appbrand.appcache.predownload.z(str3, Util.currentTicks()).h(); } a0.ZN0(bVar); } } return false; } }