package com.tencent.mm.plugin.webview.modeltools;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.g.a.po;
import com.tencent.mm.sdk.b.c;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;
import org.json.JSONException;
import org.json.JSONObject;

class e$2 extends c<po> {
    final /* synthetic */ e uoK;

    e$2(e eVar) {
        this.uoK = eVar;
        AppMethodBeat.i(6934);
        this.xxI = po.class.getName().hashCode();
        AppMethodBeat.o(6934);
    }

    private boolean a(po poVar) {
        AppMethodBeat.i(6935);
        if ((poVar instanceof po) && "bank".equals(this.uoK.uoF)) {
            if (poVar.cLL.action == 0) {
                e.a(this.uoK, this.uoK.uoF);
            } else if (poVar.cLL.action == 1) {
                if (bo.isNullOrNil(poVar.cLL.cardNum)) {
                    e.b(this.uoK, this.uoK.uoF);
                } else {
                    try {
                        JSONObject jSONObject = new JSONObject();
                        jSONObject.put("bankcard_number", poVar.cLL.cardNum);
                        e.a(this.uoK, this.uoK.uoF, jSONObject, null);
                    } catch (JSONException e) {
                        ab.e("MicroMsg.LicenceScanner", "type = bankcard, add cardNum into json, exp = %s ", new Object[]{e});
                        e.b(this.uoK, this.uoK.uoF);
                    }
                }
            }
            e.a(this.uoK);
        }
        AppMethodBeat.o(6935);
        return false;
    }
}
