package qn2; import android.content.Context; import bw3.nn3; import bw3.on3; import com.google.android.gms.common.Scopes; import com.tencent.kinda.framework.widget.tools.ConstantsKinda; import com.tencent.mm.R; import com.tencent.mm.plugin.mmsight.segment.FFmpegMetadataRetriever; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.mm.sdk.platformtools.MMApplicationContext; import com.tencent.thumbplayer.tplayer.plugins.report.TPReportKeys; import d60.z; import e00.n; import eo2.f; import java.lang.ref.WeakReference; import java.net.URLEncoder; import lh4.m; import org.json.JSONArray; import org.json.JSONObject; import pn2.a; import pn2.c; import yz3.j; public final class c1 extends c<nn3, on3> { /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public c1(String str, WeakReference<Context> weakReference, f fVar) { super(str, weakReference, fVar); m.g(str, "cmdId"); m.g(fVar, "host"); } /* JADX DEBUG: Method arguments types fixed to match base method, original types: [xv3.a, pn2.a] */ @Override // pn2.c public void f(nn3 nn32, a<nn3, on3> aVar) { Context context; Context context2; Context context3; Context context4; nn3 nn33 = nn32; m.g(aVar, "asyncResult"); on3 on32 = new on3(); if (nn33 == null) { aVar.a(new Exception("NewLifeOpenWeSeePageHandler request:" + nn33)); return; } String str = nn33.f31105e; if (str == null) { str = ""; } Log.i("MicroMsg.NewLifeGetFunctionSpamHandler", "handleAsyncRequest() called with: request type= " + nn33.f31104d + " sessionId:" + nn33.f31105e); int i15 = nn33.f31104d; if (i15 == 1) { JSONObject jSONObject = new JSONObject(); jSONObject.put("actionType", 3); JSONObject jSONObject2 = new JSONObject(); jSONObject2.put(ConstantsKinda.INTENT_LITEAPP_PATH, "old-good-look-history"); jSONObject2.put("tagId", 10802); jSONObject2.put("tagName", ""); jSONObject2.put(Scopes.PROFILE, "1"); jSONObject2.put("getSearchDataArgs", new JSONArray()); jSONObject2.put("nickname", (String) z.s().i().e(4, null)); String encode = URLEncoder.encode(jSONObject2.toString(), "UTF-8"); m.f(encode, "encode(json.toString(), \"UTF-8\")"); jSONObject.put("extParams", encode); jSONObject.put("isFromWebSearch", false); String string = MMApplicationContext.getContext().getResources().getString(R.string.h96); m.f(string, "getContext().resources.g…tring.newlife_my_looking)"); JSONObject jSONObject3 = new JSONObject(); jSONObject3.put(FFmpegMetadataRetriever.METADATA_KEY_TITLE, string); String jSONObject4 = jSONObject3.toString(); m.f(jSONObject4, "json.toString()"); jSONObject.put("nativeConfig", jSONObject4); jSONObject.put("navBarBgColorType", 1); jSONObject.put("preRequest", 0); jSONObject.put(TPReportKeys.PlayerStep.PLAYER_BUFFERING_SCENE, 21); jSONObject.put("searchId", ""); jSONObject.put("sessionId", str); jSONObject.put("tabPageType", 1); jSONObject.put("tagId", 10802); jSONObject.put("type", 0); String jSONObject5 = jSONObject.toString(); m.f(jSONObject5, "json.toString()"); n nVar = (n) j.c(n.class); WeakReference<Context> weakReference = this.f284606b; if (weakReference != null) { context = weakReference.get(); } else { context = null; } nVar.ab(context, jSONObject5); } else if (i15 == 2) { JSONObject jSONObject6 = new JSONObject(); jSONObject6.put("actionType", 3); JSONObject jSONObject7 = new JSONObject(); jSONObject7.put(ConstantsKinda.INTENT_LITEAPP_PATH, "read-history"); jSONObject7.put("tagId", 10805); jSONObject7.put("tagName", ""); jSONObject7.put("tagDesc", ""); jSONObject7.put(Scopes.PROFILE, "1"); jSONObject7.put("myNickname", (String) z.s().i().e(4, null)); String encode2 = URLEncoder.encode(jSONObject7.toString(), "UTF-8"); m.f(encode2, "encode(json.toString(), \"UTF-8\")"); jSONObject6.put("extParams", encode2); jSONObject6.put("isFromWebSearch", false); String string2 = MMApplicationContext.getContext().getResources().getString(R.string.h95); m.f(string2, "getContext().resources.g…string.newlife_my_looked)"); JSONObject jSONObject8 = new JSONObject(); jSONObject8.put(FFmpegMetadataRetriever.METADATA_KEY_TITLE, string2); String jSONObject9 = jSONObject8.toString(); m.f(jSONObject9, "json.toString()"); jSONObject6.put("nativeConfig", jSONObject9); jSONObject6.put("navBarBgColorType", 2); jSONObject6.put("preRequest", 0); jSONObject6.put(TPReportKeys.PlayerStep.PLAYER_BUFFERING_SCENE, 21); jSONObject6.put("searchId", ""); jSONObject6.put("sessionId", str); jSONObject6.put("tabPageType", 1); jSONObject6.put("tagId", 10805); jSONObject6.put("type", 0); String jSONObject10 = jSONObject6.toString(); m.f(jSONObject10, "json.toString()"); n nVar2 = (n) j.c(n.class); WeakReference<Context> weakReference2 = this.f284606b; if (weakReference2 != null) { context2 = weakReference2.get(); } else { context2 = null; } nVar2.ab(context2, jSONObject10); } else if (i15 == 3) { JSONObject jSONObject11 = new JSONObject(); jSONObject11.put("actionType", 2); jSONObject11.put("extParams", ""); jSONObject11.put("isFromWebSearch", false); jSONObject11.put("jumpUrl", "https://search.weixin.qq.com/cgi-bin/recweb/clientjump?fontRatio=1&tag=colikenewsbox#wechat_redirect"); jSONObject11.put("nativeConfig", ""); jSONObject11.put("navBarBgColorType", 1); jSONObject11.put("preRequest", 1); jSONObject11.put(TPReportKeys.PlayerStep.PLAYER_BUFFERING_SCENE, 21); jSONObject11.put("searchId", ""); jSONObject11.put("sessionId", str); jSONObject11.put("tabPageType", ""); jSONObject11.put("tagId", ""); jSONObject11.put("type", 0); String jSONObject12 = jSONObject11.toString(); m.f(jSONObject12, "json.toString()"); n nVar3 = (n) j.c(n.class); WeakReference<Context> weakReference3 = this.f284606b; if (weakReference3 != null) { context3 = weakReference3.get(); } else { context3 = null; } nVar3.ab(context3, jSONObject12); } else if (i15 == 4) { n nVar4 = (n) j.c(n.class); WeakReference<Context> weakReference4 = this.f284606b; if (weakReference4 != null) { context4 = weakReference4.get(); } else { context4 = null; } nVar4.Q5(context4); } aVar.b(on32, 0, ""); } }