package com.tencent.mm.plugin.appbrand.jsapi; import android.util.Base64; import com.google.android.gms.dynamite.ProviderConstants; import com.tencent.kinda.framework.widget.tools.ConstantsKinda; import com.tencent.mm.plugin.appbrand.ipc.AppBrandProxyUIProcessTask; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.mm.ui.MMActivity; import java.util.LinkedList; import lh4.m; import org.json.JSONObject; import qd3.z; import sz.h; import ve3.a0; import ve3.m1; import yz3.j; public final class g0 extends AppBrandProxyUIProcessTask { @Override // com.tencent.mm.plugin.appbrand.ipc.AppBrandProxyUIProcessTask public void handleRequest(AppBrandProxyUIProcessTask.ProcessRequest processRequest) { if (!(processRequest instanceof DoSetTextStatusRequest)) { Log.w("MicroMsg.AppBrand.JsApiSetTextStatus", "handleRequest, request is not DoSetTextStatusRequest"); return; } Log.i("MicroMsg.AppBrand.JsApiSetTextStatus", "handleRequest, setTextStatus"); h hVar = (h) j.c(h.class); if (hVar != null) { MMActivity activityContext = getActivityContext(); SetTextStatusParams setTextStatusParams = ((DoSetTextStatusRequest) processRequest).f86678d; LinkedList linkedList = new LinkedList(); a0 a0Var = new a0(); a0Var.f325223d = "7"; JSONObject jSONObject = new JSONObject(); jSONObject.put("appId", setTextStatusParams.f86952n); jSONObject.put("username", setTextStatusParams.f86953o); jSONObject.put(ConstantsKinda.INTENT_LITEAPP_PATH, setTextStatusParams.f86948g); jSONObject.put(ProviderConstants.API_COLNAME_FEATURE_VERSION, setTextStatusParams.f86955q); jSONObject.put("versionType", setTextStatusParams.f86954p); jSONObject.put("headImageURL", setTextStatusParams.f86957s); a0Var.f325225f = jSONObject.toString(); m1 m1Var = new m1(); m1Var.f325363d = setTextStatusParams.f86952n; m1Var.f325364e = setTextStatusParams.f86948g; m1Var.f325365f = setTextStatusParams.f86953o; m1Var.f325366g = setTextStatusParams.f86954p; m1Var.f325367h = setTextStatusParams.f86955q; m1Var.f325368i = setTextStatusParams.f86957s; a0Var.f325226g = Base64.encodeToString(m1Var.toByteArray(), 2); linkedList.add(a0Var); a0 a0Var2 = new a0(); a0Var2.f325223d = "3"; a0Var2.f325225f = "https://support.weixin.qq.com/security/readtemplate?t=w_security_center_website/upgrade&scene=1#wechat_redirect"; linkedList.add(a0Var2); z.a aVar = new z.a(); aVar.f(setTextStatusParams.f86956r); aVar.d("http://wxapp.tc.qq.com/258/20304/stodownload?m=78b18448b71e7f791aad33ecee51e533&filekey=30340201010420301e0202010204025348041078b18448b71e7f791aad33ecee51e53302020ad5040d00000004627466730000000131&hy=SH&storeid=32303231303432373134313731383030306535393731303030303030303037636638353130393030303030313032&bizid=1023"); aVar.e(setTextStatusParams.f86952n + "@weapp"); aVar.c(setTextStatusParams.f86950i); aVar.a(setTextStatusParams.f86945d); aVar.f289149a.f325204e = setTextStatusParams.f86946e; aVar.g(setTextStatusParams.f86949h); String str = setTextStatusParams.f86947f; z zVar = aVar.f289149a; zVar.f325203d.J = str; zVar.f325217u = setTextStatusParams.f86951j; aVar.b(linkedList); z zVar2 = aVar.f289149a; m.f(zVar2, "Builder()\n .s…fos)\n .build()"); hVar.rC0(activityContext, zVar2); } finishProcess(new EmptyResult()); } }