1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612
| package com.tencent.mm.pluginsdk.model.app;
public class c3 extends k1 implements j0, f { public final m d; public s0 e; public k9 f; public final long g; public final String h; public final String i; public final int j; public final a n; public long o; public String p; public WebviewReportPublisherIdEvent q; public WebviewReportTmplTransferEvent r; public AppBrandOuterMenuClickReportEvent s; public long t; public final i u;
public c3(long v, String s, String s1) { this.f = null; this.g = 0L; this.j = 0; this.o = 0L; this.p = ""; this.t = 0L; this.u = new b3(this); this.g = v; this.h = s; this.i = s1; j j0 = new j(); j0.a = new y25(); j0.b = new z25(); j0.c = "/cgi-bin/micromsg-bin/sendappmsg"; j0.d = 0xDE; j0.e = 107; j0.f = 1000000107; this.d = j0.a(); k2.j("MicroMsg.NetSceneSendAppMsg", "summersafecdn NetSceneSendAppMsg msgid[%d], sessionid[%s], signature[%s], stack[%s]", new Object[]{v, s, a8.B1(s1), new x3()}); Map map0 = q4.V6().e; Object object0 = new Object(); ((ConcurrentHashMap)map0).put(Integer.valueOf(this.hashCode()), object0); }
public c3(long v, String s, String s1, int v1, a a0) { this(v, s, s1); this.j = v1; this.n = a0; k2.j("MicroMsg.NetSceneSendAppMsg", "NetSceneSendAppMsg directShare[%d]", new Object[]{v1}); if(a0 != null) { k2.j("MicroMsg.NetSceneSendAppMsg", "NetSceneSendAppMsg tokenValid[%d], pkgName[%s]", new Object[]{((int)a0.a), a0.b}); } }
@Override public int doScene(q q0, s0 s00) { int v7; m m1; String s8; String s5; int v2; String s1; c3 c30 = this; c30.e = s00; if(c30.o == 0L) { c30.o = System.currentTimeMillis(); }
m9 m90 = (m9)h8.b().z(); long v = c30.g; k9 k90 = m90.y3(v); c30.f = k90; if(Long.compare(k90.getMsgId(), v) != 0) { return -1; }
pe0.q q1 = pe0.q.u(c30.f.getContent()); Class class0 = d3.class; if(q1 == null) { h5 h50 = new h5(c30.f.getContent()); if(a8.F0(h50.f)) { q1 = new pe0.q(); q1.p = h50.d; q1.i = 8; k2.j("MicroMsg.NetSceneSendAppMsg", "create new content. loss appid", null); } else { q1 = pe0.q.u(h50.f); } } else if(q1.i == 6 && (c30.f.u0() <= 0L || c30.f.x0() != 2)) { b b0 = (b)q1.x(b.class); if(b0 != null && (b0.b != 0L || !a8.F0(b0.c))) { b0.b = 0L; b0.c = ""; c30.f.J0(pe0.q.t(q1, null, null)); ((b1)(((d3)u70.k1.s(class0)))).l7().W8(c30.f.getMsgId(), c30.f); } }
Assert.assertTrue("content != null [[" + c30.f.getContent() + "]]", ((boolean)(q1 == null ? 0 : 1))); if(q1 == null) { c30.f = null; return -1; }
if(c30.f.k2()) { u0 u00 = (u0)n0.c(u0.class); String s = c30.f.m0(); ((v0)u00).getClass(); t2 t20 = zl0.b3.i(s); s1 = t20 == null ? "" : t20.D.i; } else if(a8.F0(c30.f.m0())) { s1 = ""; } else { ((av.i)(((f0)n0.c(f0.class)))).getClass(); s1 = l3.X6().V3(c30.f.m0()); }
int v1 = q1.i; if(v1 == 8 || v1 == 9) { k2.j("MicroMsg.NetSceneSendAppMsg", "cdntra cdn not support Emoji or voiceremind now type:%d", new Object[]{v1}); v2 = 0; } else if(a8.F0(s1)) { k2.j("MicroMsg.NetSceneSendAppMsg", "cdntra cdn not support no thumb msg type:%d", new Object[]{((int)q1.i)}); v2 = 0; } else { long v3 = v; long v4 = (long)(((int)p6.l(s1))); c30.t = v4; int v5 = q1.i; int v6 = v5 == 33 || v5 == 36 || v5 == 46 || v5 == 44 || v5 == 0x30 || v5 == 101 ? 1 : 0; if(v6 == 0 && v4 >= 0x40000L) { k2.q("MicroMsg.NetSceneSendAppMsg", "cdntra thumb[%s][%d] Too Big Not Use CDN TRANS", new Object[]{s1, v4}); v2 = 0; } else { k2.j("MicroMsg.NetSceneSendAppMsg", "cdntra content.type:%d thumbPath:%s, thumbLength:%d ", new Object[]{v5, s1, ((long)c30.t)}); if(a8.F0(q1.o)) { Class class1 = jq.f0.class; if(v6 == 0 && !((k)(((jq.f0)n0.c(class1)))).W6(4)) { k2.q("MicroMsg.NetSceneSendAppMsg", "cdntra not use cdn flag:%b ", new Object[]{Boolean.valueOf(((k)(((jq.f0)n0.c(class1)))).W6(4))}); v2 = 0; } else { String s2 = p1.b("upappmsg", c30.f.getCreateTime(), c30.f.y0(), "" + c30.f.getMsgId()); c30.p = s2; if(a8.F0(s2)) { k2.q("MicroMsg.NetSceneSendAppMsg", "cdntra genClientId failed not use cdn msgid:%d", new Object[]{((long)c30.f.getMsgId())}); v2 = 0; } else { oj.k k0 = new oj.k(); k0.d = "task_AppMessage"; k0.field_fullpath = ""; k0.field_fileType = 3; k0.field_priority = 2; k0.field_needStorage = false; k0.field_isStreamMedia = false; k0.field_force_aeskeycdn = true; k0.field_trysafecdn = false; for(Object object0: q1.B2.entrySet()) { h h0 = (h)((Map.Entry)object0).getValue(); if(h0 == null) { continue; }
h0.b(k0, q1); }
k0.f = c30.u; k0.field_mediaId = c30.p; k0.field_thumbpath = s1; k0.field_talker = c30.f.y0(); k2.j("MicroMsg.NetSceneSendAppMsg", "summersafecdn cdntra checkUseCdn content.type[%d], thumb[%s], useCdnTransClientId[%s], fileType[%d], enable_hitcheck[%b], onlycheckexist[%b], force_aeskeycdn[%b], trysafecdn[%b]", new Object[]{((int)q1.i), s1, c30.p, ((int)k0.field_fileType), Boolean.valueOf(k0.field_enable_hitcheck), Boolean.valueOf(k0.field_onlycheckexist), Boolean.valueOf(k0.field_force_aeskeycdn), Boolean.valueOf(k0.field_trysafecdn)}); if(((k)(((jq.f0)n0.c(class1)))).S6(k0)) { v2 = 1; } else { k2.e("MicroMsg.NetSceneSendAppMsg", "cdntra addSendTask failed.", null); c30.p = ""; v2 = 0; } } } } else { k2.q("MicroMsg.NetSceneSendAppMsg", "cdntra attach has been upload by cdn msgid:%d", new Object[]{v3}); v2 = 0; } } }
if(v2 != 0) { return 0; }
l2 l20 = w.a(c30.h); if(l20 != null && (l20.a("_tmpl_webview_transfer_scene"))) { WebviewReportTmplTransferEvent webviewReportTmplTransferEvent0 = new WebviewReportTmplTransferEvent(); c30.r = webviewReportTmplTransferEvent0; webviewReportTmplTransferEvent0.g.a = l20.e("_tmpl_webview_transfer_scene", -1); }
m m0 = c30.d; y25 y250 = (y25)m0.a.a; x6 x60 = new x6(); x60.e = q1.d; String s3 = s1; x60.n = c30.f.y0() + c30.f.getMsgId() + "T" + c30.f.getCreateTime(); if(q1.i != 19 && q1.i != 24) { String s4 = c30.f.getContent(); if(d.f().b(new RepairerConfigUrlXmlTrim()) == 1 && (q1.i == 5 && q1.H == 0 && s4 != null)) { try { s5 = s74.b.a(s4, "appmsg"); } catch(Exception unused_ex) { s5 = null; } } else { s5 = null; }
if(a8.F0(s5)) { s5 = pe0.q.s(q1, null, null, 0, 0); }
x60.i = s5; } else { try { x60.i = s74.b.a(c30.f.getContent(), "appmsg"); } catch(Exception unused_ex) { x60.i = pe0.q.s(q1, null, null, 0, 0); } }
x60.j = (int)a8.d1(); x60.g = c30.f.y0(); x60.d = b2.r(); x60.h = q1.i; x60.f = q1.e; x60.p = q1.r; String s6 = ((d1)ok.a.a).a(c30.f); x60.r = a8.F0(s6) ? tj0.m9.a(c30.f.G) : s6; x60.s = q1.E1; x60.t = q1.F1; x60.u = q1.G1; a a0 = c30.n; if(a0 != null) { x60.v = a0.a; x60.w = a0.b; }
if(l20 == null) { m1 = m0; v7 = 5; } else { WebviewReportPublisherIdEvent webviewReportPublisherIdEvent0 = new WebviewReportPublisherIdEvent(); c30.q = webviewReportPublisherIdEvent0; webviewReportPublisherIdEvent0.g.e = q1.j; webviewReportPublisherIdEvent0.g.a = l20.f("prePublishId", ""); k00 k000 = c30.q.g; k000.c = l20.f("preUsername", ""); k00 k001 = c30.q.g; k001.d = l20.f("preChatName", ""); k00 k002 = c30.q.g; k002.f = l20.e("preMsgIndex", 0); k00 k003 = c30.q.g; k003.j = l20.e("sendAppMsgScene", 0); k00 k004 = c30.q.g; k004.k = l20.e("getA8KeyScene", 0); k00 k005 = c30.q.g; k005.l = l20.f("referUrl", null); k00 k006 = c30.q.g; k006.m = l20.f("adExtStr", null); c30.q.g.g = c30.f.y0(); c30.q.g.n = q1.f; c30.q.g.o = q1.g; if(((t4)h8.b().u()).n(c30.f.y0(), true) != null) { c30.q.g.h = ""; }
k00 k007 = c30.q.g; k007.i = ((nq.a)(((e)n0.c(e.class)))).N6(c30.f.y0()); if(q1.U1 == null) { goto label_661; } else { rf5 rf50 = new rf5(); byte[] arr_b = Base64.decode(q1.U1, 0); try { rf50.parseFrom(arr_b); pf5 pf50 = rf50.f; if(pf50 == null) { goto label_661; }
String s7 = pf50.d; s8 = s7; } catch(Exception unused_ex) { label_661: s8 = ""; } }
Locale locale0 = Locale.US; Object[] arr_object = new Object[6]; m1 = m0; arr_object[0] = c30.q.g.a; arr_object[1] = c30.q.g.c; arr_object[2] = c30.q.g.d; arr_object[3] = (int)h2.b(c30.q.g.c, c30.q.g.d); arr_object[4] = (int)c30.q.g.k; v7 = 5; arr_object[5] = s8; y250.j = String.format(locale0, "prePublishId=%s&preUserName=%s&preChatName=%s&preChatType=%d&getA8KeyScene=%d&sourceAppId=%s", arr_object); }
if(l20 != null && q1.i == 33) { c30.s = new AppBrandOuterMenuClickReportEvent(); int v8 = l20.e("fromScene", 1); c30.s.g.d = v8; l20.e("appservicetype", 0); c30.s.g.getClass(); String s9 = l20.f("preChatName", ""); c30.s.g.f = 2 == v8 ? s9 + ":" + l20.f("preUsername", "") : s9; String s10 = c30.f.y0(); boolean z = l20.d("moreRetrAction", false); if(s10.endsWith("@chatroom")) { wi.w w0 = c30.s.g; if(!z) { v7 = 2; }
w0.h = v7; } else { c30.s.g.h = z ? 4 : 1; }
wi.w w1 = c30.s.g; w1.e = q1.v2 + 1; w1.g = q1.e2; w1.a = q1.f2; w1.b = q1.g2; w1.c = q1.w2; w1.j = a8.d1(); c30.s.g.k = 1; c30.s.g.l = q1.j2; }
if(!a8.F0(s3)) { byte[] arr_b1 = p6.N(s3, 0, -1); if(!a8.H0(arr_b1)) { oy4 oy40 = new oy4(); oy40.c(arr_b1); x60.o = oy40; } }
y250.d = x60; if(q1.t != 0 || q1.l > 0x1900000) { y250.h = 7; }
y250.g = q1.s; y250.i = c30.i; y250.q = c30.j; if(((PluginMessengerFoundation)(((to2.l3)n0.c(to2.l3.class)))).S6(c30.f.y0())) { y250.r = ((b1)(((d3)u70.k1.s(class0)))).Q6().Y(c30.f.y0()); }
k2.j("MicroMsg.NetSceneSendAppMsg", "summersafecdn file md5[%s], signature[%s], type[%d], fromScene[%s]", new Object[]{y250.g, a8.B1(y250.i), ((int)y250.h), y250.j}); k2.j("MicroMsg.NetSceneSendAppMsg", "Req MsgSource %s", new Object[]{y250.d.r}); return c30.dispatch(q0, m1, c30); }
@Override public int getDispatchInterceptRet(q q0, t0 t00, j0 j00) { return a1.a(this.g, this) ? 0xFFFFFF82 : super.getDispatchInterceptRet(q0, t00, j00); }
@Override public long getMsgId() { return this.g; }
@Override public int getType() { return 0xDE; }
@Override public void onGYNetEnd(int v, int v1, int v2, String s, t0 t00, byte[] arr_b) { k9 k91; k9 k93; mq2.b b0; String s2; c3 c30 = this; int v3 = v1; int v4 = v2; String s1 = s; k2.j("MicroMsg.NetSceneSendAppMsg", "summersafecdn cdntra onGYNetEnd [%d,%d,%s] msgId:%d, oldContent[%s]", new Object[]{v1, v2, s1, ((long)c30.g), a8.B1(c30.f.getContent())}); m m0 = (m)t00; z25 z250 = (z25)m0.b.a; y25 y250 = (y25)m0.a.a; if(z250 != null && (v3 == 4 || v3 == 0 && v4 == 0)) { ((PluginMessengerFoundation)(((to2.l3)n0.c(to2.l3.class)))).T6(z250.q); }
if(v3 == 3 && v4 == -1 && !a8.F0(c30.p)) { k2.q("MicroMsg.NetSceneSendAppMsg", "cdntra using cdn trans, wait cdn service callback! clientid:%s", new Object[]{c30.p}); return; }
k9 k90 = ((m9)h8.b().z()).y3(c30.f.getMsgId()); if(v3 == 0 && v4 == 0) { k90.h1(2); k90.a1(z250.n); tj0.m9.M(k90, z250.p, false); ((m9)h8.b().z()).W8(k90.getMsgId(), k90); ((m1)(((uy.i)n0.c(uy.i.class)))).Q6(k90.getMsgId()); int v5 = u.a(k90); com.tencent.mm.modelstat.h.f.e(k90, v5); if(c30.q != null && !a8.F0(c30.q.g.e)) { c30.q.g.b = "msg_" + Long.toString(z250.n); c30.q.d(); }
WebviewReportTmplTransferEvent webviewReportTmplTransferEvent0 = c30.r; if(webviewReportTmplTransferEvent0 != null && webviewReportTmplTransferEvent0.g.a != -1) { webviewReportTmplTransferEvent0.d(); }
pe0.q q0 = pe0.q.u(k90.getContent()); if(q0 != null && ("wx4310bbd51be7d979".equals(q0.d))) { int v6 = (a8.F0(k90.y0())) || !k4.O3(k90.y0()) ? 0 : 1; try { s2 = URLEncoder.encode(q0.g, "UTF-8"); } catch(UnsupportedEncodingException unsupportedEncodingException0) { k2.n("MicroMsg.NetSceneSendAppMsg", unsupportedEncodingException0, "", new Object[0]); s2 = ""; }
String s3 = "1," + (v6 == 0 ? 1 : 2) + ",," + s2; k2.j("MicroMsg.NetSceneSendAppMsg", "androidSystemShareFixed(13717) %s", new Object[]{s3}); g0.r.kvStat(0x3595, s3); }
if(q0 == null) { k91 = k90; } else { int v7 = q0.i; if(v7 == 6) { k91 = k90; ((xo4.t0)xo4.t0.d).g(new e7(q0, k91, 6)); } else { switch(v7) { case 53: { k9 k92 = k90; Class class0 = eh2.e.class; p p0 = ((eh2.e)n0.c(class0)).Q6(); p0.getClass(); if(k92.u0() <= 0L) { k91 = k92; } else { k91 = k92; ((xo4.t0)xo4.t0.d).h(new ih2.k(p0, k91), "GroupSolitaireReport"); }
p p1 = ((eh2.e)n0.c(class0)).Q6(); p1.getClass(); if(k91.u0() > 0L) { ((xo4.t0)xo4.t0.d).g(new ih2.m(p1, k91)); }
break; } case 57: { Class class1 = jq2.i.class; jq2.i i0 = (jq2.i)n0.c(class1); long v8 = k90.getMsgId(); long v9 = k90.u0(); ((jq2.j)i0).getClass(); mq2.a a0 = ((jq2.j)(((jq2.i)n0.c(class1)))).N6(); if(v8 <= 0L) { a0.getClass(); k2.e("MicroMsg.msgquote.MsgQuoteStorage", "getMsgQuteByMsgId:%s", new Object[]{v8}); b0 = null; } else { Cursor cursor0 = a0.d.l("MsgQuote", mq2.b.v.c, "msgId=?", new String[]{v8 + ""}, null, null, null); if(cursor0 == null) { b0 = null; } else { ArrayList arrayList0 = new ArrayList(); while(cursor0.moveToNext()) { mq2.b b1 = new mq2.b(); b1.convertFrom(cursor0); arrayList0.add(b1); }
b0 = arrayList0.size() == 0 ? null : ((mq2.b)arrayList0.get(0)); } }
if(b0 == null) { k93 = k90; k2.e("MicroMsg.msgquote.PluginMsgQuote", "handleQuoteMsgSendResuld() msgId:%s msgSvrId:%s, msgQuote is null", new Object[]{v8, v9}); } else { b0.field_msgSvrId = v9; mq2.a a1 = ((jq2.j)(((jq2.i)n0.c(class1)))).N6(); a1.getClass(); k93 = k90; boolean z = a1.update(b0.systemRowid, b0); k9 k94 = ((b1)(((d3)u70.k1.s(d3.class)))).l7().y3(b0.field_quotedMsgId); switch(k94.getType()) { case 49: case 0x100031: case 0x19000031: case 0x1A000031: case 0x2D000031: case 0x2E000031: case 0x30000031: case 0x31000031: case 0x33000031: case 0x38000031: case 0x3A000031: case 0x3A200031: case 0x3E000031: case 0x41000031: case 0x45000031: case 0x46000031: { pe0.q q1 = pe0.q.u(k94.getContent()); if(q1 == null) { k2.e("MicroMsg.msgquote.PluginMsgQuote", "appMsgContent is null", null); } else { g.a(2L, b0.field_quotedMsgSvrId, 49L, q1.i); }
break; } default: { g.a(2L, b0.field_quotedMsgSvrId, k94.getType(), 0L); } }
k2.j("MicroMsg.msgquote.PluginMsgQuote", "handleQuoteMsgSendResuld() msgId:%s msgSvrId:%s result:%s", new Object[]{v8, v9, Boolean.valueOf(((boolean)(((int)z))))}); }
k91 = k93; break; } default: { k91 = k90; } } } }
if(q0 != null && (k4.K3(k91.y0()))) { pe0.a a2 = (pe0.a)q0.x(pe0.a.class); if(a2 != null && (a2.I)) { uj.j0.a(k91, q0); }
((xj.j)(((xj.i)n0.c(xj.i.class)))).e7(k91); }
AppBrandOuterMenuClickReportEvent appBrandOuterMenuClickReportEvent0 = c30.s; if(appBrandOuterMenuClickReportEvent0 != null) { appBrandOuterMenuClickReportEvent0.g.i = "msg_" + k91.u0(); c30.s.d(); }
c30.e.onSceneEnd(v3, v4, s1, c30); return; }
k90.h1(5); zo2.b.e(k90.getMsgId(), zo2.b.c(v4, v3, s1, 0xDE)); x43.f.e.idkeyStat(0x6FL, 34L, 1L, true); ((m9)h8.b().z()).W8(k90.getMsgId(), k90); k2.e("MicroMsg.NetSceneSendAppMsg", "send app msg failed, err=" + v3 + "," + v4 + ", msgId " + k90.getMsgId(), null); d80.u.L("AndroidSendMsgFailReport", new n(k90.getMsgId(), new o(v1, v2, s1))); c30.e.onSceneEnd(v3, v4, s1, c30); }
@Override public com.tencent.mm.modelbase.m1 securityVerificationChecked(t0 t00) { return com.tencent.mm.modelbase.m1.e; } }
|