Shandong video conference v3.2.10版本的 MD5 值为:e9e908f971313b4c4bca5737f96781ef
以下内容为反编译后的 d.java 源代码,内容仅作参考
package com.ainemo.android.p;
import android.content.ClipboardManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.ResolveInfo;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.log.L;
import android.net.Uri;
import android.os.Build;
import android.os.Parcelable;
import android.text.TextUtils;
import android.util.Log;
import android.utils.e;
import android.utils.k;
import android.utils.q;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.l0;
import cn.gov.sdongmeeting.video.R;
import com.ainemo.android.activity.MobileApplication;
import com.ainemo.android.activity.base.BaseActivity;
import com.ainemo.android.p.e.a;
import com.ainemo.android.preferences.o;
import com.ainemo.android.utils.DateUtils;
import com.android.dingtalk.share.ddsharemodule.DDShareApiFactory;
import com.android.dingtalk.share.ddsharemodule.IDDShareApi;
import com.android.dingtalk.share.ddsharemodule.message.DDMediaMessage;
import com.android.dingtalk.share.ddsharemodule.message.DDWebpageMessage;
import com.android.dingtalk.share.ddsharemodule.message.SendMessageToDD;
import com.tencent.mm.opensdk.modelmsg.SendMessageToWX;
import com.tencent.mm.opensdk.modelmsg.WXMiniProgramObject;
import com.tencent.mm.sdk.openapi.IWXAPI;
import com.tencent.mm.sdk.openapi.SendMessageToWX;
import com.tencent.mm.sdk.openapi.WXAPIFactory;
import com.tencent.mm.sdk.openapi.WXImageObject;
import com.tencent.mm.sdk.openapi.WXMediaMessage;
import com.tencent.mm.sdk.openapi.WXWebpageObject;
import com.tencent.mm.sdk.platformtools.Util;
import com.tencent.wework.api.IWWAPI;
import com.tencent.wework.api.IwwapiFactory;
import com.tencent.wework.api.model.ShareCodeModel;
import com.tencent.wework.api.model.WWMediaImage;
import com.tencent.wework.api.model.WWMediaLink;
import com.xylink.net.manager.g;
import com.xylink.util.file.FileUtils;
import com.xylink.util.image.BitmapUtil;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import retrofit2.HttpException;
public class d {
public static final int a = 260;
public static final int f6714b = 146;
private static String f6715c = "ShareUtils";
static class a extends com.xylink.net.d.b<Object> {
final BaseActivity a;
final String f6716b;
final String f6717c;
final WWMediaImage f6718d;
a(String str, BaseActivity baseActivity, String str2, String str3, WWMediaImage wWMediaImage) {
super(str);
this.a = baseActivity;
this.f6716b = str2;
this.f6717c = str3;
this.f6718d = wWMediaImage;
}
@Override
public void onException(Throwable th) {
super.onException(th);
String str = d.f6715c;
L.i(str, "shareImageToEnterpriseWeixin onException=" + th);
BaseActivity baseActivity = this.a;
if (baseActivity != null) {
baseActivity.hideProgressDialog();
com.xylink.common.widget.c.b.b(this.a, (int) R.string.share_failure);
}
}
@Override
public void onHttpError(HttpException httpException, String str, boolean z) {
super.onHttpError(httpException, str, z);
String str2 = d.f6715c;
L.i(str2, "shareImageToEnterpriseWeixin onHttpError=" + httpException + ",errorData=" + str + ",isJSON=" + z);
BaseActivity baseActivity = this.a;
if (baseActivity != null) {
baseActivity.hideProgressDialog();
com.xylink.common.widget.c.b.b(this.a, (int) R.string.share_failure);
}
}
@Override
public void onNext(Object obj, boolean z) {
BaseActivity baseActivity = this.a;
if (baseActivity != null) {
baseActivity.hideProgressDialog();
}
String str = d.f6715c;
L.i(str, "shareImageToEnterpriseWeixin isJSON=" + z + " o=" + obj.toString());
if (z) {
try {
ShareCodeModel shareCodeModel = (ShareCodeModel) e.a.b.b.a(e.a.b.b.a(obj), (Class<Object>) ShareCodeModel.class);
if (shareCodeModel != null && shareCodeModel.getData() != null && !TextUtils.isEmpty(shareCodeModel.getData())) {
View inflate = LayoutInflater.from(this.a).inflate(R.layout.layout_qyweixin_bg, (ViewGroup) null, false);
((TextView) inflate.findViewById(R.id.theme)).setText(this.a.getString(R.string.cmr_share_theme, new Object[]{this.f6716b}));
((TextView) inflate.findViewById(R.id.time)).setText(this.a.getString(R.string.cmr_share_time, new Object[]{this.f6717c}));
((ImageView) inflate.findViewById(R.id.code_img)).setBackground(e.a(shareCodeModel.getData()));
this.f6718d.fileData = e.a(e.a(inflate));
IwwapiFactory.getInstance().getIwwapi().sendMessage(this.f6718d);
} else {
com.xylink.common.widget.c.b.b(this.a, (int) R.string.share_failure);
}
return;
} catch (Exception e2) {
e2.printStackTrace();
com.xylink.common.widget.c.b.b(this.a, (int) R.string.share_failure);
return;
}
}
com.xylink.common.widget.c.b.b(this.a, (int) R.string.share_failure);
}
}
public static void b(Context context, String str) {
ArrayList arrayList = new ArrayList();
Intent intent = new Intent();
intent.setAction("android.intent.action.SEND");
intent.setType(com.xylink.util.file.a.f15526g);
List<ResolveInfo> queryIntentActivities = context.getPackageManager().queryIntentActivities(intent, 0);
if (queryIntentActivities != null && queryIntentActivities.size() > 0) {
for (ResolveInfo resolveInfo : queryIntentActivities) {
if (resolveInfo.activityInfo.packageName.contains("com.android.mms")) {
Intent intent2 = new Intent("android.intent.action.SEND");
intent2.setType(com.xylink.util.file.a.f15526g);
intent2.putExtra("android.intent.extra.TEXT", str);
ActivityInfo activityInfo = resolveInfo.activityInfo;
intent2.setComponent(new ComponentName(activityInfo.packageName, activityInfo.name));
arrayList.add(intent2);
}
}
}
try {
Intent createChooser = Intent.createChooser((Intent) arrayList.remove(0), "");
createChooser.putExtra("android.intent.extra.INITIAL_INTENTS", (Parcelable[]) arrayList.toArray(new Parcelable[0]));
context.startActivity(createChooser);
} catch (Exception e2) {
e2.printStackTrace();
}
}
public static void c(Context context, String str) {
String str2 = f6715c;
L.i(str2, "shareTextToEnterpriseWeixin description=" + str);
ArrayList arrayList = new ArrayList();
Intent intent = new Intent();
intent.setAction("android.intent.action.SEND");
intent.setType(com.xylink.util.file.a.f15526g);
List<ResolveInfo> queryIntentActivities = context.getPackageManager().queryIntentActivities(intent, 0);
if (queryIntentActivities != null && queryIntentActivities.size() > 0) {
for (ResolveInfo resolveInfo : queryIntentActivities) {
if (resolveInfo.activityInfo.packageName.contains("com.tencent.wework")) {
Intent intent2 = new Intent("android.intent.action.SEND");
intent2.setType(com.xylink.util.file.a.f15526g);
intent2.putExtra("android.intent.extra.TEXT", str);
ActivityInfo activityInfo = resolveInfo.activityInfo;
intent2.setComponent(new ComponentName(activityInfo.packageName, activityInfo.name));
arrayList.add(intent2);
}
}
}
Intent createChooser = Intent.createChooser((Intent) arrayList.remove(0), "");
createChooser.putExtra("android.intent.extra.INITIAL_INTENTS", (Parcelable[]) arrayList.toArray(new Parcelable[0]));
context.startActivity(createChooser);
}
public static void a(Context context, String str) {
((ClipboardManager) context.getSystemService("clipboard")).setText(str.trim());
}
public static void a(Context context, String str, String str2) {
if (Build.MANUFACTURER.equalsIgnoreCase("Huawei")) {
b(context, str2);
} else if (str == null || str2 == null) {
} else {
Intent intent = new Intent("android.intent.action.SENDTO", Uri.parse("smsto:" + str));
intent.putExtra("exit_on_sent", true);
intent.putExtra("sms_body", str2);
context.startActivity(intent);
}
}
public static void a(Context context, String str, String str2, String str3) {
Intent intent = new Intent("android.intent.action.SEND");
intent.setType(com.xylink.util.file.a.f15521b);
intent.putExtra("android.intent.extra.SUBJECT", str2);
intent.putExtra("android.intent.extra.TEXT", str3);
context.startActivity(Intent.createChooser(intent, null));
}
public static boolean a(IWXAPI iwxapi) {
return iwxapi.isWXAppInstalled() && iwxapi.isWXAppSupportAPI();
}
public static void a(Context context, Bitmap bitmap, boolean z) {
IWXAPI createWXAPI = WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x);
createWXAPI.registerApp(com.ainemo.android.b.x);
if (!a(createWXAPI)) {
com.xylink.common.widget.c.b.b(context, context.getResources().getString(R.string.vod_share_no_weixin), 0);
return;
}
WXImageObject wXImageObject = new WXImageObject(bitmap);
WXMediaMessage wXMediaMessage = new WXMediaMessage();
wXMediaMessage.mediaObject = wXImageObject;
if (bitmap.getWidth() > 200 || bitmap.getHeight() > 200) {
bitmap = k.b(bitmap, 200, 200);
}
wXMediaMessage.thumbData = Util.bmpToByteArray(bitmap, true);
SendMessageToWX.Req req = new SendMessageToWX.Req();
req.transaction = "img_" + System.currentTimeMillis();
req.message = wXMediaMessage;
req.scene = z ? 1 : 0;
createWXAPI.sendReq(req);
}
public static void b(boolean z) {
String name = d.class.getName();
Log.i(name, "WXShareManager onResult:" + z);
}
public static void b(String str, String str2, String str3, String str4) {
IWWAPI iwwapi = IwwapiFactory.getInstance().getIwwapi();
if (!iwwapi.isWWAppInstalled()) {
Toast.makeText(MobileApplication.l(), MobileApplication.l().getString(R.string.vod_share_no_qyweixin), 0).show();
} else if (!iwwapi.isWWAppSupportAPI()) {
Toast.makeText(MobileApplication.l(), MobileApplication.l().getString(R.string.vod_share_nosupport_qyweixin), 0).show();
} else {
WWMediaLink wWMediaLink = new WWMediaLink();
wWMediaLink.webpageUrl = str;
wWMediaLink.title = MobileApplication.k().getString(R.string.click_join_meeting);
wWMediaLink.description = str3;
wWMediaLink.appPkg = com.ainemo.android.b.f5979b;
wWMediaLink.appName = MobileApplication.k().getString(R.string.app_name);
wWMediaLink.appId = com.ainemo.android.b.v;
wWMediaLink.agentId = com.ainemo.android.b.u;
if (str4 == null) {
Bitmap decodeResource = BitmapFactory.decodeResource(MobileApplication.k().getResources(), R.drawable.share_logo);
wWMediaLink.setThumbImage(BitmapUtil.cropToSquare(decodeResource));
decodeResource.recycle();
} else {
Bitmap decodeFile = BitmapFactory.decodeFile(str4);
if (decodeFile == null) {
decodeFile = BitmapFactory.decodeResource(MobileApplication.k().getResources(), R.drawable.share_logo);
} else if (decodeFile.getWidth() > 200 || decodeFile.getHeight() > 200) {
decodeFile = k.b(decodeFile, 200, 200);
}
wWMediaLink.setThumbImage(BitmapUtil.cropToSquare(decodeFile));
decodeFile.recycle();
}
iwwapi.sendMessage(wWMediaLink);
}
}
public static void a(Context context, int i2, boolean z, String str, String str2, String str3) {
a(context, i2, (String) null, z, str, str2, str3);
}
public static void a(Context context, int i2, String str, boolean z, String str2, String str3, String str4) {
Bitmap decodeResource;
IWXAPI createWXAPI = WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x);
createWXAPI.registerApp(com.ainemo.android.b.x);
if (!a(createWXAPI)) {
com.xylink.common.widget.c.b.b(context, context.getResources().getString(R.string.vod_share_no_weixin), 0);
return;
}
com.ainemo.android.p.e.a.a().a(new a.InterfaceC0118a() {
@Override
public final void onResult(boolean z2) {
d.a(z2);
}
});
WXWebpageObject wXWebpageObject = new WXWebpageObject();
wXWebpageObject.webpageUrl = str2;
WXMediaMessage wXMediaMessage = new WXMediaMessage(wXWebpageObject);
wXMediaMessage.title = str3;
wXMediaMessage.description = str4;
if (str == null) {
if (!TextUtils.isEmpty(o.p0().q())) {
String s = o.p0().s();
String r = o.p0().r();
if (!TextUtils.isEmpty(s) && !TextUtils.isEmpty(r) && FileUtils.isValidateFile(r, s)) {
decodeResource = BitmapFactory.decodeFile(s);
} else {
decodeResource = BitmapFactory.decodeResource(context.getResources(), i2);
}
} else {
decodeResource = BitmapFactory.decodeResource(context.getResources(), i2);
}
wXMediaMessage.thumbData = com.ainemo.android.p.e.b.a(decodeResource, true);
decodeResource.recycle();
} else {
Bitmap decodeFile = BitmapFactory.decodeFile(str);
if (decodeFile == null) {
decodeFile = BitmapFactory.decodeResource(context.getResources(), i2);
} else if (decodeFile.getWidth() > 200 || decodeFile.getHeight() > 200) {
decodeFile = k.b(decodeFile, 200, 200);
}
wXMediaMessage.thumbData = com.ainemo.android.p.e.b.a(decodeFile, true);
decodeFile.recycle();
}
SendMessageToWX.Req req = new SendMessageToWX.Req();
req.transaction = "appd_" + System.currentTimeMillis();
req.message = wXMediaMessage;
req.scene = z ? 1 : 0;
createWXAPI.sendReq(req);
}
public static void b(Context context, String str, String str2) {
boolean z;
L.i(f6715c, "shareTextToEnterpriseWeixin description=" + str + ",shareUrl=" + str2);
if (context == null) {
return;
}
String str3 = context.getString(R.string.click_join_meeting) + "\n" + str + "\n" + context.getString(R.string.cmr_share_url, str2);
ArrayList arrayList = new ArrayList();
Intent intent = new Intent();
intent.setAction("android.intent.action.SEND");
intent.setType(com.xylink.util.file.a.f15526g);
List<ResolveInfo> queryIntentActivities = context.getPackageManager().queryIntentActivities(intent, 0);
if (queryIntentActivities == null || queryIntentActivities.size() <= 0) {
z = false;
} else {
z = false;
for (ResolveInfo resolveInfo : queryIntentActivities) {
if (resolveInfo.activityInfo.packageName.contains("com.tencent.wework")) {
Intent intent2 = new Intent("android.intent.action.SEND");
intent2.setType(com.xylink.util.file.a.f15526g);
intent2.putExtra("android.intent.extra.TEXT", str3);
ActivityInfo activityInfo = resolveInfo.activityInfo;
intent2.setComponent(new ComponentName(activityInfo.packageName, activityInfo.name));
arrayList.add(intent2);
z = true;
}
}
}
if (z) {
Intent createChooser = Intent.createChooser((Intent) arrayList.remove(0), "");
createChooser.putExtra("android.intent.extra.INITIAL_INTENTS", (Parcelable[]) arrayList.toArray(new Parcelable[0]));
context.startActivity(createChooser);
return;
}
com.xylink.common.widget.c.b.a(context, (int) R.string.vod_share_no_qyweixin, 0);
}
public static void a(boolean z) {
String name = d.class.getName();
Log.i(name, "WXShareManager onResult:" + z);
}
public static void a(Context context, int i2, Bitmap bitmap, boolean z, String str, String str2, String str3) {
Bitmap decodeResource;
IWXAPI createWXAPI = WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x);
createWXAPI.registerApp(com.ainemo.android.b.x);
if (!a(createWXAPI)) {
com.xylink.common.widget.c.b.b(context, context.getResources().getString(R.string.vod_share_no_weixin), 0);
return;
}
com.ainemo.android.p.e.a.a().a(new a.InterfaceC0118a() {
@Override
public final void onResult(boolean z2) {
d.b(z2);
}
});
WXWebpageObject wXWebpageObject = new WXWebpageObject();
wXWebpageObject.webpageUrl = str;
WXMediaMessage wXMediaMessage = new WXMediaMessage(wXWebpageObject);
wXMediaMessage.title = str2;
wXMediaMessage.description = str3;
if (bitmap == null) {
if (!TextUtils.isEmpty(o.p0().q())) {
String s = o.p0().s();
String r = o.p0().r();
if (!TextUtils.isEmpty(s) && !TextUtils.isEmpty(r) && FileUtils.isValidateFile(r, s)) {
decodeResource = BitmapFactory.decodeFile(s);
} else {
decodeResource = BitmapFactory.decodeResource(context.getResources(), i2);
}
} else {
decodeResource = BitmapFactory.decodeResource(context.getResources(), i2);
}
wXMediaMessage.thumbData = com.ainemo.android.p.e.b.a(decodeResource, true);
decodeResource.recycle();
} else {
if (bitmap.getWidth() > 200 || bitmap.getHeight() > 200) {
bitmap = k.b(bitmap, 200, 200);
}
wXMediaMessage.thumbData = com.ainemo.android.p.e.b.a(bitmap, true);
bitmap.recycle();
}
SendMessageToWX.Req req = new SendMessageToWX.Req();
req.transaction = "appd_" + System.currentTimeMillis();
req.message = wXMediaMessage;
req.scene = z ? 1 : 0;
createWXAPI.sendReq(req);
}
@l0(api = 21)
public static void a(Context context, String str, String str2, int i2, String str3, String str4, String str5, String str6, String str7, String str8, long j2, String str9) {
a(context, str, str2, i2, str3, str4, str5, str6, str7, str8, j2, str9, "");
}
@l0(api = 21)
public static void a(Context context, String str, String str2, int i2, String str3, String str4, String str5, String str6, String str7, String str8, long j2, String str9, String str10) {
ImageView imageView;
TextView textView;
View view;
WXMiniProgramObject wXMiniProgramObject = new WXMiniProgramObject();
wXMiniProgramObject.webpageUrl = "http://www.qq.com";
wXMiniProgramObject.miniprogramType = 0;
wXMiniProgramObject.userName = com.ainemo.android.b.A;
wXMiniProgramObject.path = "/pages/share/main?shareCode=" + str7 + "&time=" + q.b(str4, "UTF-8").replaceAll("\\+", "%20").replaceAll("-", "/") + "&topic=" + q.b(str3, "UTF-8").replaceAll("\\+", "%20") + "&userName=" + q.b(str8, "UTF-8").replaceAll("\\+", "%20") + "&userId=" + q.b(String.valueOf(j2), "UTF-8").replaceAll("\\+", "%20") + "&endTime=" + q.b(str5, "UTF-8").replaceAll("\\+", "%20") + "&shareUrl=" + q.b(str9, "UTF-8").replaceAll("\\+", "%20");
if (!TextUtils.isEmpty(str10)) {
wXMiniProgramObject.path += "&from=".concat(q.b(str10, "UTF-8").replaceAll("\\+", "%20"));
}
com.tencent.mm.opensdk.modelmsg.WXMediaMessage wXMediaMessage = new com.tencent.mm.opensdk.modelmsg.WXMediaMessage(wXMiniProgramObject);
wXMediaMessage.title = str;
wXMediaMessage.description = str2;
if (!TextUtils.isEmpty(str10)) {
if ("calling".equals(str10)) {
view = LayoutInflater.from(context).inflate(R.layout.layout_minprogram_bg, (ViewGroup) null, false);
imageView = (ImageView) view.findViewById(R.id.iv_client_logo);
textView = (TextView) view.findViewById(R.id.tv_client_name);
((TextView) view.findViewById(R.id.time_value)).setText(R.string.cmr_invite_on_meeting);
((TextView) view.findViewById(R.id.theme_value)).setText(str3);
((TextView) view.findViewById(R.id.number_value)).setText(str6);
} else {
View inflate = LayoutInflater.from(context).inflate(R.layout.layout_minprogram_invite_bg, (ViewGroup) null, false);
long parseLong = Long.parseLong(str5);
long parse = Date.parse(str4.concat(":00").replace("-", "/"));
String lognToStringHour = DateUtils.lognToStringHour(parse);
String lognToStringTime = DateUtils.lognToStringTime(parse);
String lognToStringHour2 = DateUtils.lognToStringHour(parseLong);
String lognToStringTime2 = DateUtils.lognToStringTime(parseLong);
((TextView) inflate.findViewById(R.id.start_time_value)).setText(lognToStringHour);
((TextView) inflate.findViewById(R.id.start_date_value)).setText(lognToStringTime);
((TextView) inflate.findViewById(R.id.end_time_value)).setText(lognToStringHour2);
((TextView) inflate.findViewById(R.id.end_date_value)).setText(lognToStringTime2);
((TextView) inflate.findViewById(R.id.theme_value)).setText(str3);
((TextView) inflate.findViewById(R.id.number_value)).setText(str6);
view = inflate;
imageView = (ImageView) inflate.findViewById(R.id.iv_client_logo);
textView = (TextView) inflate.findViewById(R.id.tv_client_name);
}
} else {
View inflate2 = LayoutInflater.from(context).inflate(R.layout.layout_minprogram_bg, (ViewGroup) null, false);
imageView = (ImageView) inflate2.findViewById(R.id.iv_client_logo);
textView = (TextView) inflate2.findViewById(R.id.tv_client_name);
((TextView) inflate2.findViewById(R.id.theme_value)).setText(str3);
((TextView) inflate2.findViewById(R.id.time_value)).setText(str4);
((TextView) inflate2.findViewById(R.id.number_value)).setText(str6);
view = inflate2;
}
if (!TextUtils.isEmpty(o.p0().q())) {
String s = o.p0().s();
String r = o.p0().r();
if (!TextUtils.isEmpty(s) && !TextUtils.isEmpty(r) && FileUtils.isValidateFile(r, s)) {
imageView.setImageBitmap(BitmapFactory.decodeFile(s));
textView.setText(o.p0().w());
}
}
L.i(f6715c, "shareToMinProgram screenWidth=" + com.xylink.common.e.d.g(context) + ",screenHeight=" + com.xylink.common.e.d.f(context) + ",density=" + com.xylink.common.e.d.a() + ",densityDpi=" + com.xylink.common.e.d.b().densityDpi);
int g2 = (com.xylink.common.e.d.g(context) * 4) / 5;
String str11 = f6715c;
StringBuilder sb = new StringBuilder();
sb.append("shareToMinProgram height=");
sb.append(g2);
L.i(str11, sb.toString());
e.a(view, com.xylink.common.e.d.g(context), g2);
Bitmap b2 = e.b(view);
Bitmap createScaledBitmap = Bitmap.createScaledBitmap(b2, 500, 400, true);
b2.recycle();
wXMediaMessage.thumbData = Util.bmpToByteArray(createScaledBitmap, true);
SendMessageToWX.Req req = new SendMessageToWX.Req();
req.transaction = "webpage" + System.currentTimeMillis();
req.message = wXMediaMessage;
req.scene = 0;
com.tencent.mm.opensdk.openapi.WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x).sendReq(req);
}
public static void a(BaseActivity baseActivity, String str, String str2, String str3, String str4) {
String str5 = f6715c;
L.i(str5, "shareImageToEnterpriseWeixin activity=" + baseActivity + ",shareCode=" + str + ",appName=" + str2);
if (baseActivity == null) {
return;
}
if (baseActivity instanceof BaseActivity) {
baseActivity.showProgressDialog(R.string.waiting_connecting);
}
WWMediaImage wWMediaImage = new WWMediaImage();
wWMediaImage.appPkg = com.ainemo.android.b.f5979b;
wWMediaImage.appName = str2;
wWMediaImage.appId = com.ainemo.android.b.v;
wWMediaImage.agentId = com.ainemo.android.b.u;
String c2 = g.E().c("https://prdtxlive.xylink.com", str);
String str6 = f6715c;
L.i(str6, "shareImageToEnterpriseWeixin url=" + c2);
com.ainemo.android.manager.k.c().f(c2).b(io.reactivex.v0.g.b.b()).a(io.reactivex.v0.a.e.b.b()).subscribe(new a("getQywxScanCode", baseActivity, str3, str4, wWMediaImage));
}
public static void a(String str, String str2, String str3, String str4) {
Bitmap decodeResource;
IDDShareApi createDDShareApi = DDShareApiFactory.createDDShareApi(MobileApplication.l(), com.ainemo.android.b.f5987j, true);
if (!createDDShareApi.isDDAppInstalled()) {
Toast.makeText(MobileApplication.l(), MobileApplication.l().getString(R.string.vod_share_no_dingding), 0).show();
} else if (!createDDShareApi.isDDSupportAPI()) {
Toast.makeText(MobileApplication.l(), MobileApplication.l().getString(R.string.vod_share_nosupport_dingding), 0).show();
} else {
L.i(f6715c, "shareToDingding");
DDWebpageMessage dDWebpageMessage = new DDWebpageMessage();
dDWebpageMessage.mUrl = str;
DDMediaMessage dDMediaMessage = new DDMediaMessage();
dDMediaMessage.mMediaObject = dDWebpageMessage;
dDMediaMessage.mTitle = MobileApplication.k().getString(R.string.click_join_meeting);
dDMediaMessage.mContent = str3;
if (str4 == null) {
if (!TextUtils.isEmpty(o.p0().q())) {
String s = o.p0().s();
String r = o.p0().r();
if (!TextUtils.isEmpty(s) && !TextUtils.isEmpty(r) && FileUtils.isValidateFile(r, s)) {
decodeResource = BitmapFactory.decodeFile(s);
} else {
decodeResource = BitmapFactory.decodeResource(MobileApplication.k().getResources(), R.drawable.share_logo);
}
} else {
decodeResource = BitmapFactory.decodeResource(MobileApplication.k().getResources(), R.drawable.share_logo);
}
dDMediaMessage.setThumbImage(BitmapUtil.cropToSquare(decodeResource));
decodeResource.recycle();
} else {
Bitmap decodeFile = BitmapFactory.decodeFile(str4);
if (decodeFile == null) {
decodeFile = BitmapFactory.decodeResource(MobileApplication.k().getResources(), R.drawable.share_logo);
} else if (decodeFile.getWidth() > 200 || decodeFile.getHeight() > 200) {
decodeFile = k.b(decodeFile, 200, 200);
}
dDMediaMessage.setThumbImage(BitmapUtil.cropToSquare(decodeFile));
decodeFile.recycle();
}
SendMessageToDD.Req req = new SendMessageToDD.Req();
req.mMediaMessage = dDMediaMessage;
createDDShareApi.sendReq(req);
}
}
public static String a(String str) {
if (TextUtils.isEmpty(str)) {
return "";
}
if (str.contains("dt")) {
return str.substring(str.lastIndexOf("/") + 1, str.lastIndexOf("?"));
}
return str.substring(str.lastIndexOf("/") + 1, str.length());
}
public static void a(Context context, String str, String str2, int i2, String str3, String str4, String str5, long j2, String str6, long j3) {
WXMiniProgramObject wXMiniProgramObject;
String str7 = str4;
String str8 = str5;
String str9 = str6;
WXMiniProgramObject wXMiniProgramObject2 = new WXMiniProgramObject();
wXMiniProgramObject2.webpageUrl = "http://sj.qq.com/myapp/detail.htm?apkName=com.ainemo.dragoon";
wXMiniProgramObject2.miniprogramType = 0;
wXMiniProgramObject2.userName = com.ainemo.android.b.A;
try {
if (!TextUtils.isEmpty(str4) && str7 != null) {
try {
str7 = URLEncoder.encode(str7, "UTF-8").replaceAll("\\+", "%20");
} catch (UnsupportedEncodingException e2) {
e = e2;
wXMiniProgramObject = wXMiniProgramObject2;
e.printStackTrace();
wXMiniProgramObject.path = "pages/joinEnterprise/main?enterpriseId=" + str3 + "&enterpriseName=" + str7 + "&shareName=" + str8 + "×tamp=" + j2 + "&userName" + str9 + "&userId=" + j3;
com.tencent.mm.opensdk.modelmsg.WXMediaMessage wXMediaMessage = new com.tencent.mm.opensdk.modelmsg.WXMediaMessage(wXMiniProgramObject);
wXMediaMessage.title = str;
wXMediaMessage.description = str2;
View inflate = LayoutInflater.from(context).inflate(R.layout.layout_invate_enterprise_bg, (ViewGroup) null, false);
((TextView) inflate.findViewById(R.id.tv_invate_info)).setText(context.getString(R.string.string_card_enterprise_tip));
int g2 = (com.xylink.common.e.d.g(context) * 4) / 5;
String str10 = f6715c;
L.i(str10, "shareToMinProgram height=" + g2);
e.a(inflate, com.xylink.common.e.d.g(context), g2);
Bitmap b2 = e.b(inflate);
Bitmap createScaledBitmap = Bitmap.createScaledBitmap(b2, 500, 400, true);
b2.recycle();
wXMediaMessage.thumbData = Util.bmpToByteArray(createScaledBitmap, true);
SendMessageToWX.Req req = new SendMessageToWX.Req();
req.transaction = "webpage" + System.currentTimeMillis();
req.message = wXMediaMessage;
req.scene = 0;
com.tencent.mm.opensdk.openapi.WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x).sendReq(req);
}
}
} catch (UnsupportedEncodingException e3) {
e = e3;
wXMiniProgramObject = wXMiniProgramObject2;
}
try {
if (!TextUtils.isEmpty(str5) && str8 != null) {
str8 = URLEncoder.encode(str8, "UTF-8").replaceAll("\\+", "%20");
}
if (!TextUtils.isEmpty(str6) && str9 != null) {
str9 = URLEncoder.encode(str9, "UTF-8").replaceAll("\\+", "%20");
}
StringBuilder sb = new StringBuilder();
sb.append("pages/joinEnterprise/main?enterpriseId=");
sb.append(str3);
sb.append("&enterpriseName=");
sb.append(str7);
sb.append("&shareName=");
sb.append(str8);
sb.append("×tamp=");
sb.append(j2);
sb.append("&userName");
sb.append(str9);
sb.append("&userId=");
String str11 = str7;
try {
sb.append(URLEncoder.encode(String.valueOf(j3), "UTF-8").replaceAll("\\+", "%20"));
wXMiniProgramObject = wXMiniProgramObject2;
try {
wXMiniProgramObject.path = sb.toString();
} catch (UnsupportedEncodingException e4) {
e = e4;
str7 = str11;
e.printStackTrace();
wXMiniProgramObject.path = "pages/joinEnterprise/main?enterpriseId=" + str3 + "&enterpriseName=" + str7 + "&shareName=" + str8 + "×tamp=" + j2 + "&userName" + str9 + "&userId=" + j3;
com.tencent.mm.opensdk.modelmsg.WXMediaMessage wXMediaMessage2 = new com.tencent.mm.opensdk.modelmsg.WXMediaMessage(wXMiniProgramObject);
wXMediaMessage2.title = str;
wXMediaMessage2.description = str2;
View inflate2 = LayoutInflater.from(context).inflate(R.layout.layout_invate_enterprise_bg, (ViewGroup) null, false);
((TextView) inflate2.findViewById(R.id.tv_invate_info)).setText(context.getString(R.string.string_card_enterprise_tip));
int g22 = (com.xylink.common.e.d.g(context) * 4) / 5;
String str102 = f6715c;
L.i(str102, "shareToMinProgram height=" + g22);
e.a(inflate2, com.xylink.common.e.d.g(context), g22);
Bitmap b22 = e.b(inflate2);
Bitmap createScaledBitmap2 = Bitmap.createScaledBitmap(b22, 500, 400, true);
b22.recycle();
wXMediaMessage2.thumbData = Util.bmpToByteArray(createScaledBitmap2, true);
SendMessageToWX.Req req2 = new SendMessageToWX.Req();
req2.transaction = "webpage" + System.currentTimeMillis();
req2.message = wXMediaMessage2;
req2.scene = 0;
com.tencent.mm.opensdk.openapi.WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x).sendReq(req2);
}
} catch (UnsupportedEncodingException e5) {
e = e5;
wXMiniProgramObject = wXMiniProgramObject2;
}
} catch (UnsupportedEncodingException e6) {
e = e6;
wXMiniProgramObject = wXMiniProgramObject2;
e.printStackTrace();
wXMiniProgramObject.path = "pages/joinEnterprise/main?enterpriseId=" + str3 + "&enterpriseName=" + str7 + "&shareName=" + str8 + "×tamp=" + j2 + "&userName" + str9 + "&userId=" + j3;
com.tencent.mm.opensdk.modelmsg.WXMediaMessage wXMediaMessage22 = new com.tencent.mm.opensdk.modelmsg.WXMediaMessage(wXMiniProgramObject);
wXMediaMessage22.title = str;
wXMediaMessage22.description = str2;
View inflate22 = LayoutInflater.from(context).inflate(R.layout.layout_invate_enterprise_bg, (ViewGroup) null, false);
((TextView) inflate22.findViewById(R.id.tv_invate_info)).setText(context.getString(R.string.string_card_enterprise_tip));
int g222 = (com.xylink.common.e.d.g(context) * 4) / 5;
String str1022 = f6715c;
L.i(str1022, "shareToMinProgram height=" + g222);
e.a(inflate22, com.xylink.common.e.d.g(context), g222);
Bitmap b222 = e.b(inflate22);
Bitmap createScaledBitmap22 = Bitmap.createScaledBitmap(b222, 500, 400, true);
b222.recycle();
wXMediaMessage22.thumbData = Util.bmpToByteArray(createScaledBitmap22, true);
SendMessageToWX.Req req22 = new SendMessageToWX.Req();
req22.transaction = "webpage" + System.currentTimeMillis();
req22.message = wXMediaMessage22;
req22.scene = 0;
com.tencent.mm.opensdk.openapi.WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x).sendReq(req22);
}
com.tencent.mm.opensdk.modelmsg.WXMediaMessage wXMediaMessage222 = new com.tencent.mm.opensdk.modelmsg.WXMediaMessage(wXMiniProgramObject);
wXMediaMessage222.title = str;
wXMediaMessage222.description = str2;
View inflate222 = LayoutInflater.from(context).inflate(R.layout.layout_invate_enterprise_bg, (ViewGroup) null, false);
((TextView) inflate222.findViewById(R.id.tv_invate_info)).setText(context.getString(R.string.string_card_enterprise_tip));
int g2222 = (com.xylink.common.e.d.g(context) * 4) / 5;
String str10222 = f6715c;
L.i(str10222, "shareToMinProgram height=" + g2222);
e.a(inflate222, com.xylink.common.e.d.g(context), g2222);
Bitmap b2222 = e.b(inflate222);
Bitmap createScaledBitmap222 = Bitmap.createScaledBitmap(b2222, 500, 400, true);
b2222.recycle();
wXMediaMessage222.thumbData = Util.bmpToByteArray(createScaledBitmap222, true);
SendMessageToWX.Req req222 = new SendMessageToWX.Req();
req222.transaction = "webpage" + System.currentTimeMillis();
req222.message = wXMediaMessage222;
req222.scene = 0;
com.tencent.mm.opensdk.openapi.WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x).sendReq(req222);
}
public static void a(Context context, String str, String str2, int i2, String str3, String str4, String str5, long j2) {
String str6 = str4;
WXMiniProgramObject wXMiniProgramObject = new WXMiniProgramObject();
wXMiniProgramObject.webpageUrl = "http://sj.qq.com/myapp/detail.htm?apkName=com.ainemo.dragoon";
wXMiniProgramObject.miniprogramType = 0;
wXMiniProgramObject.userName = com.ainemo.android.b.A;
try {
if (!TextUtils.isEmpty(str4) && str6 != null) {
str6 = URLEncoder.encode(str6, "UTF-8").replaceAll("\\+", "%20");
}
wXMiniProgramObject.path = "pages/mergeEnterprise/main?mergeId=" + str6 + "&userName=" + URLEncoder.encode(str5, "UTF-8").replaceAll("\\+", "%20") + "&userId=" + URLEncoder.encode(String.valueOf(j2), "UTF-8").replaceAll("\\+", "%20");
} catch (UnsupportedEncodingException e2) {
e2.printStackTrace();
wXMiniProgramObject.path = "pages/mergeEnterprise/main?mergeId=" + str6 + "&userName=" + str5 + "&userId=" + j2;
}
com.tencent.mm.opensdk.modelmsg.WXMediaMessage wXMediaMessage = new com.tencent.mm.opensdk.modelmsg.WXMediaMessage(wXMiniProgramObject);
wXMediaMessage.title = str;
wXMediaMessage.description = str2;
View inflate = LayoutInflater.from(context).inflate(R.layout.layout_invate_enterprise_bg, (ViewGroup) null, false);
((TextView) inflate.findViewById(R.id.tv_invate_info)).setText(str3);
int g2 = (com.xylink.common.e.d.g(context) * 4) / 5;
String str7 = f6715c;
L.i(str7, "shareToMinProgram height=" + g2);
e.a(inflate, com.xylink.common.e.d.g(context), g2);
Bitmap b2 = e.b(inflate);
Bitmap createScaledBitmap = Bitmap.createScaledBitmap(b2, 500, 400, true);
b2.recycle();
wXMediaMessage.thumbData = Util.bmpToByteArray(createScaledBitmap, true);
SendMessageToWX.Req req = new SendMessageToWX.Req();
req.transaction = "webpage" + System.currentTimeMillis();
req.message = wXMediaMessage;
req.scene = 0;
com.tencent.mm.opensdk.openapi.WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x).sendReq(req);
}
public static void a(Context context, String str, String str2, int i2, String str3, String str4, String str5, String str6, String str7, String str8, long j2, String str9, String str10, String str11, String str12, int i3) {
long j3;
String str13;
String str14;
String str15;
String str16;
String str17;
String str18;
String str19;
String str20;
String str21;
String str22;
String str23;
UnsupportedEncodingException unsupportedEncodingException;
WXMiniProgramObject wXMiniProgramObject;
String str24;
WXMiniProgramObject wXMiniProgramObject2;
String str25;
String str26;
WXMiniProgramObject wXMiniProgramObject3;
String str27;
String str28;
String str29;
String str30;
String str31;
String str32;
String str33;
String str34;
String str35;
String str36;
String str37;
String str38;
String str39;
String str40;
String str41;
String str42 = str4;
String str43 = str5;
String str44 = str6;
String str45 = str7;
String str46 = str8;
String str47 = str9;
String str48 = str10;
String str49 = str11;
String str50 = str12;
String str51 = "&typeGroup=";
String str52 = "&endTime=";
String str53 = "&dispenseNum=";
String str54 = "&dispenseEnterpriseId=";
WXMiniProgramObject wXMiniProgramObject4 = new WXMiniProgramObject();
wXMiniProgramObject4.webpageUrl = "http://sj.qq.com/myapp/detail.htm?apkName=com.ainemo.dragoon";
wXMiniProgramObject4.miniprogramType = 0;
wXMiniProgramObject4.userName = com.ainemo.android.b.A;
try {
wXMiniProgramObject = wXMiniProgramObject4;
if (!TextUtils.isEmpty(str4) && str42 != null) {
try {
str42 = URLEncoder.encode(str42, "UTF-8").replaceAll("\\+", "%20");
} catch (UnsupportedEncodingException e2) {
str21 = str48;
str22 = str49;
str23 = str50;
str14 = str54;
str17 = "&voucherId=";
str13 = "×tamp=";
unsupportedEncodingException = e2;
str24 = str42;
str18 = str44;
str19 = str45;
str20 = str46;
str15 = "&typeName=";
str16 = "&moneyAmount=";
j3 = j2;
unsupportedEncodingException.printStackTrace();
String str55 = str14;
wXMiniProgramObject2 = wXMiniProgramObject;
wXMiniProgramObject2.path = "pages/activity/voucher/main?dispenseRecordId=" + str19 + "&md5=" + str20 + "&dispenseUserId=" + str43 + str13 + j3 + str17 + str24 + str16 + str18 + str15 + str47 + str55 + str21 + str53 + str22 + str52 + str23 + str51 + i3;
com.tencent.mm.opensdk.modelmsg.WXMediaMessage wXMediaMessage = new com.tencent.mm.opensdk.modelmsg.WXMediaMessage(wXMiniProgramObject2);
wXMediaMessage.title = str;
wXMediaMessage.description = str2;
View inflate = LayoutInflater.from(context).inflate(R.layout.layout_tickets_mp_bg, (ViewGroup) null, false);
((TextView) inflate.findViewById(R.id.tv_invate_info)).setVisibility(8);
((RelativeLayout) inflate.findViewById(R.id.rela_root)).setBackground(context.getResources().getDrawable(i2));
int g2 = (com.xylink.common.e.d.g(context) * 4) / 5;
String str56 = f6715c;
L.i(str56, "shareToMinProgram height=" + g2);
e.a(inflate, com.xylink.common.e.d.g(context), g2);
Bitmap b2 = e.b(inflate);
Bitmap createScaledBitmap = Bitmap.createScaledBitmap(b2, 500, 400, true);
b2.recycle();
wXMediaMessage.thumbData = Util.bmpToByteArray(createScaledBitmap, true);
SendMessageToWX.Req req = new SendMessageToWX.Req();
req.transaction = "webpage" + System.currentTimeMillis();
req.message = wXMediaMessage;
req.scene = 0;
com.tencent.mm.opensdk.openapi.WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x).sendReq(req);
}
}
try {
if (!TextUtils.isEmpty(str5) && str43 != null) {
str43 = URLEncoder.encode(str43, "UTF-8").replaceAll("\\+", "%20");
}
try {
if (!TextUtils.isEmpty(str6) && str44 != null) {
str44 = URLEncoder.encode(str44, "UTF-8").replaceAll("\\+", "%20");
}
try {
if (!TextUtils.isEmpty(str7) && str45 != null) {
str45 = URLEncoder.encode(str45, "UTF-8").replaceAll("\\+", "%20");
}
try {
if (!TextUtils.isEmpty(str8) && str46 != null) {
str46 = URLEncoder.encode(str46, "UTF-8").replaceAll("\\+", "%20");
}
try {
if (!TextUtils.isEmpty(str9) && str47 != null) {
str47 = URLEncoder.encode(str47, "UTF-8").replaceAll("\\+", "%20");
}
try {
if (!TextUtils.isEmpty(str10) && str48 != null) {
str48 = URLEncoder.encode(str48, "UTF-8").replaceAll("\\+", "%20");
}
} catch (UnsupportedEncodingException e3) {
e = e3;
str28 = str51;
str29 = str45;
str14 = str54;
str17 = "&voucherId=";
str13 = "×tamp=";
j3 = j2;
str30 = str42;
str16 = "&moneyAmount=";
str31 = str44;
str15 = "&typeName=";
str26 = str43;
wXMiniProgramObject3 = wXMiniProgramObject;
str20 = str46;
str21 = str10;
str22 = str11;
str23 = str12;
unsupportedEncodingException = e;
str51 = str28;
str18 = str31;
str24 = str30;
str19 = str29;
String str57 = str26;
wXMiniProgramObject = wXMiniProgramObject3;
str43 = str57;
unsupportedEncodingException.printStackTrace();
String str552 = str14;
wXMiniProgramObject2 = wXMiniProgramObject;
wXMiniProgramObject2.path = "pages/activity/voucher/main?dispenseRecordId=" + str19 + "&md5=" + str20 + "&dispenseUserId=" + str43 + str13 + j3 + str17 + str24 + str16 + str18 + str15 + str47 + str552 + str21 + str53 + str22 + str52 + str23 + str51 + i3;
com.tencent.mm.opensdk.modelmsg.WXMediaMessage wXMediaMessage2 = new com.tencent.mm.opensdk.modelmsg.WXMediaMessage(wXMiniProgramObject2);
wXMediaMessage2.title = str;
wXMediaMessage2.description = str2;
View inflate2 = LayoutInflater.from(context).inflate(R.layout.layout_tickets_mp_bg, (ViewGroup) null, false);
((TextView) inflate2.findViewById(R.id.tv_invate_info)).setVisibility(8);
((RelativeLayout) inflate2.findViewById(R.id.rela_root)).setBackground(context.getResources().getDrawable(i2));
int g22 = (com.xylink.common.e.d.g(context) * 4) / 5;
String str562 = f6715c;
L.i(str562, "shareToMinProgram height=" + g22);
e.a(inflate2, com.xylink.common.e.d.g(context), g22);
Bitmap b22 = e.b(inflate2);
Bitmap createScaledBitmap2 = Bitmap.createScaledBitmap(b22, 500, 400, true);
b22.recycle();
wXMediaMessage2.thumbData = Util.bmpToByteArray(createScaledBitmap2, true);
SendMessageToWX.Req req2 = new SendMessageToWX.Req();
req2.transaction = "webpage" + System.currentTimeMillis();
req2.message = wXMediaMessage2;
req2.scene = 0;
com.tencent.mm.opensdk.openapi.WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x).sendReq(req2);
}
} catch (UnsupportedEncodingException e4) {
e = e4;
str28 = str51;
str29 = str45;
str14 = str54;
str17 = "&voucherId=";
str13 = "×tamp=";
j3 = j2;
str30 = str42;
str16 = "&moneyAmount=";
str31 = str44;
str15 = "&typeName=";
str26 = str43;
wXMiniProgramObject3 = wXMiniProgramObject;
str20 = str46;
str47 = str9;
}
} catch (UnsupportedEncodingException e5) {
e = e5;
String str58 = str45;
str14 = str54;
str17 = "&voucherId=";
str13 = "×tamp=";
j3 = j2;
str25 = str42;
str16 = "&moneyAmount=";
str27 = str44;
str15 = "&typeName=";
str26 = str43;
wXMiniProgramObject3 = wXMiniProgramObject;
str19 = str58;
str20 = str8;
str47 = str9;
str21 = str10;
str22 = str11;
str23 = str12;
unsupportedEncodingException = e;
str18 = str27;
str24 = str25;
String str572 = str26;
wXMiniProgramObject = wXMiniProgramObject3;
str43 = str572;
unsupportedEncodingException.printStackTrace();
String str5522 = str14;
wXMiniProgramObject2 = wXMiniProgramObject;
wXMiniProgramObject2.path = "pages/activity/voucher/main?dispenseRecordId=" + str19 + "&md5=" + str20 + "&dispenseUserId=" + str43 + str13 + j3 + str17 + str24 + str16 + str18 + str15 + str47 + str5522 + str21 + str53 + str22 + str52 + str23 + str51 + i3;
com.tencent.mm.opensdk.modelmsg.WXMediaMessage wXMediaMessage22 = new com.tencent.mm.opensdk.modelmsg.WXMediaMessage(wXMiniProgramObject2);
wXMediaMessage22.title = str;
wXMediaMessage22.description = str2;
View inflate22 = LayoutInflater.from(context).inflate(R.layout.layout_tickets_mp_bg, (ViewGroup) null, false);
((TextView) inflate22.findViewById(R.id.tv_invate_info)).setVisibility(8);
((RelativeLayout) inflate22.findViewById(R.id.rela_root)).setBackground(context.getResources().getDrawable(i2));
int g222 = (com.xylink.common.e.d.g(context) * 4) / 5;
String str5622 = f6715c;
L.i(str5622, "shareToMinProgram height=" + g222);
e.a(inflate22, com.xylink.common.e.d.g(context), g222);
Bitmap b222 = e.b(inflate22);
Bitmap createScaledBitmap22 = Bitmap.createScaledBitmap(b222, 500, 400, true);
b222.recycle();
wXMediaMessage22.thumbData = Util.bmpToByteArray(createScaledBitmap22, true);
SendMessageToWX.Req req22 = new SendMessageToWX.Req();
req22.transaction = "webpage" + System.currentTimeMillis();
req22.message = wXMediaMessage22;
req22.scene = 0;
com.tencent.mm.opensdk.openapi.WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x).sendReq(req22);
}
try {
if (!TextUtils.isEmpty(str11) && str49 != null) {
str49 = URLEncoder.encode(str49, "UTF-8").replaceAll("\\+", "%20");
}
try {
if (!TextUtils.isEmpty(str12) && str50 != null) {
str50 = URLEncoder.encode(str50, "UTF-8").replaceAll("\\+", "%20");
}
try {
StringBuilder sb = new StringBuilder();
sb.append("pages/activity/voucher/main?dispenseRecordId=");
sb.append(str45);
sb.append("&md5=");
sb.append(str46);
sb.append("&dispenseUserId=");
sb.append(str43);
str13 = "×tamp=";
try {
sb.append(str13);
String str59 = str45;
String str60 = str46;
j3 = j2;
str26 = str43;
wXMiniProgramObject3 = wXMiniProgramObject;
try {
sb.append(j3);
str29 = str59;
str17 = "&voucherId=";
try {
sb.append(str17);
sb.append(str42);
str37 = str42;
str16 = "&moneyAmount=";
try {
sb.append(str16);
sb.append(str44);
str39 = str44;
str15 = "&typeName=";
try {
sb.append(str15);
sb.append(str47);
str32 = str47;
try {
sb.append(str54);
sb.append(str48);
str54 = str54;
str33 = str53;
try {
sb.append(str33);
sb.append(str49);
str40 = str48;
str34 = str52;
} catch (UnsupportedEncodingException e6) {
e = e6;
str40 = str48;
str38 = str50;
str34 = str52;
str41 = str49;
str35 = str51;
str36 = str60;
str14 = str54;
unsupportedEncodingException = e;
str22 = str41;
str21 = str40;
str18 = str39;
str24 = str37;
str23 = str38;
str53 = str33;
str52 = str34;
str47 = str32;
str20 = str36;
str51 = str35;
str19 = str29;
String str5722 = str26;
wXMiniProgramObject = wXMiniProgramObject3;
str43 = str5722;
unsupportedEncodingException.printStackTrace();
String str55222 = str14;
wXMiniProgramObject2 = wXMiniProgramObject;
wXMiniProgramObject2.path = "pages/activity/voucher/main?dispenseRecordId=" + str19 + "&md5=" + str20 + "&dispenseUserId=" + str43 + str13 + j3 + str17 + str24 + str16 + str18 + str15 + str47 + str55222 + str21 + str53 + str22 + str52 + str23 + str51 + i3;
com.tencent.mm.opensdk.modelmsg.WXMediaMessage wXMediaMessage222 = new com.tencent.mm.opensdk.modelmsg.WXMediaMessage(wXMiniProgramObject2);
wXMediaMessage222.title = str;
wXMediaMessage222.description = str2;
View inflate222 = LayoutInflater.from(context).inflate(R.layout.layout_tickets_mp_bg, (ViewGroup) null, false);
((TextView) inflate222.findViewById(R.id.tv_invate_info)).setVisibility(8);
((RelativeLayout) inflate222.findViewById(R.id.rela_root)).setBackground(context.getResources().getDrawable(i2));
int g2222 = (com.xylink.common.e.d.g(context) * 4) / 5;
String str56222 = f6715c;
L.i(str56222, "shareToMinProgram height=" + g2222);
e.a(inflate222, com.xylink.common.e.d.g(context), g2222);
Bitmap b2222 = e.b(inflate222);
Bitmap createScaledBitmap222 = Bitmap.createScaledBitmap(b2222, 500, 400, true);
b2222.recycle();
wXMediaMessage222.thumbData = Util.bmpToByteArray(createScaledBitmap222, true);
SendMessageToWX.Req req222 = new SendMessageToWX.Req();
req222.transaction = "webpage" + System.currentTimeMillis();
req222.message = wXMediaMessage222;
req222.scene = 0;
com.tencent.mm.opensdk.openapi.WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x).sendReq(req222);
}
} catch (UnsupportedEncodingException e7) {
e = e7;
str38 = str50;
String str61 = str49;
str35 = str51;
str36 = str60;
str14 = str54;
str33 = str53;
str40 = str48;
str34 = str52;
str41 = str61;
}
} catch (UnsupportedEncodingException e8) {
e = e8;
str32 = str47;
str38 = str50;
str33 = str53;
str40 = str48;
str34 = str52;
str41 = str49;
str35 = str51;
str36 = str60;
str14 = str54;
unsupportedEncodingException = e;
str22 = str41;
str21 = str40;
str18 = str39;
str24 = str37;
str23 = str38;
str53 = str33;
str52 = str34;
str47 = str32;
str20 = str36;
str51 = str35;
str19 = str29;
String str57222 = str26;
wXMiniProgramObject = wXMiniProgramObject3;
str43 = str57222;
unsupportedEncodingException.printStackTrace();
String str552222 = str14;
wXMiniProgramObject2 = wXMiniProgramObject;
wXMiniProgramObject2.path = "pages/activity/voucher/main?dispenseRecordId=" + str19 + "&md5=" + str20 + "&dispenseUserId=" + str43 + str13 + j3 + str17 + str24 + str16 + str18 + str15 + str47 + str552222 + str21 + str53 + str22 + str52 + str23 + str51 + i3;
com.tencent.mm.opensdk.modelmsg.WXMediaMessage wXMediaMessage2222 = new com.tencent.mm.opensdk.modelmsg.WXMediaMessage(wXMiniProgramObject2);
wXMediaMessage2222.title = str;
wXMediaMessage2222.description = str2;
View inflate2222 = LayoutInflater.from(context).inflate(R.layout.layout_tickets_mp_bg, (ViewGroup) null, false);
((TextView) inflate2222.findViewById(R.id.tv_invate_info)).setVisibility(8);
((RelativeLayout) inflate2222.findViewById(R.id.rela_root)).setBackground(context.getResources().getDrawable(i2));
int g22222 = (com.xylink.common.e.d.g(context) * 4) / 5;
String str562222 = f6715c;
L.i(str562222, "shareToMinProgram height=" + g22222);
e.a(inflate2222, com.xylink.common.e.d.g(context), g22222);
Bitmap b22222 = e.b(inflate2222);
Bitmap createScaledBitmap2222 = Bitmap.createScaledBitmap(b22222, 500, 400, true);
b22222.recycle();
wXMediaMessage2222.thumbData = Util.bmpToByteArray(createScaledBitmap2222, true);
SendMessageToWX.Req req2222 = new SendMessageToWX.Req();
req2222.transaction = "webpage" + System.currentTimeMillis();
req2222.message = wXMediaMessage2222;
req2222.scene = 0;
com.tencent.mm.opensdk.openapi.WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x).sendReq(req2222);
}
} catch (UnsupportedEncodingException e9) {
e = e9;
str39 = str44;
str38 = str50;
str15 = "&typeName=";
str32 = str47;
str33 = str53;
str40 = str48;
str34 = str52;
str41 = str49;
str35 = str51;
str36 = str60;
str14 = str54;
unsupportedEncodingException = e;
str22 = str41;
str21 = str40;
str18 = str39;
str24 = str37;
str23 = str38;
str53 = str33;
str52 = str34;
str47 = str32;
str20 = str36;
str51 = str35;
str19 = str29;
String str572222 = str26;
wXMiniProgramObject = wXMiniProgramObject3;
str43 = str572222;
unsupportedEncodingException.printStackTrace();
String str5522222 = str14;
wXMiniProgramObject2 = wXMiniProgramObject;
wXMiniProgramObject2.path = "pages/activity/voucher/main?dispenseRecordId=" + str19 + "&md5=" + str20 + "&dispenseUserId=" + str43 + str13 + j3 + str17 + str24 + str16 + str18 + str15 + str47 + str5522222 + str21 + str53 + str22 + str52 + str23 + str51 + i3;
com.tencent.mm.opensdk.modelmsg.WXMediaMessage wXMediaMessage22222 = new com.tencent.mm.opensdk.modelmsg.WXMediaMessage(wXMiniProgramObject2);
wXMediaMessage22222.title = str;
wXMediaMessage22222.description = str2;
View inflate22222 = LayoutInflater.from(context).inflate(R.layout.layout_tickets_mp_bg, (ViewGroup) null, false);
((TextView) inflate22222.findViewById(R.id.tv_invate_info)).setVisibility(8);
((RelativeLayout) inflate22222.findViewById(R.id.rela_root)).setBackground(context.getResources().getDrawable(i2));
int g222222 = (com.xylink.common.e.d.g(context) * 4) / 5;
String str5622222 = f6715c;
L.i(str5622222, "shareToMinProgram height=" + g222222);
e.a(inflate22222, com.xylink.common.e.d.g(context), g222222);
Bitmap b222222 = e.b(inflate22222);
Bitmap createScaledBitmap22222 = Bitmap.createScaledBitmap(b222222, 500, 400, true);
b222222.recycle();
wXMediaMessage22222.thumbData = Util.bmpToByteArray(createScaledBitmap22222, true);
SendMessageToWX.Req req22222 = new SendMessageToWX.Req();
req22222.transaction = "webpage" + System.currentTimeMillis();
req22222.message = wXMediaMessage22222;
req22222.scene = 0;
com.tencent.mm.opensdk.openapi.WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x).sendReq(req22222);
}
try {
sb.append(str34);
sb.append(str50);
str41 = str49;
str35 = str51;
try {
sb.append(str35);
str38 = str50;
str36 = str60;
str14 = str54;
} catch (UnsupportedEncodingException e10) {
e = e10;
str38 = str50;
str36 = str60;
str14 = str54;
}
try {
sb.append(i3);
wXMiniProgramObject3.path = sb.toString();
wXMiniProgramObject2 = wXMiniProgramObject3;
} catch (UnsupportedEncodingException e11) {
e = e11;
unsupportedEncodingException = e;
str22 = str41;
str21 = str40;
str18 = str39;
str24 = str37;
str23 = str38;
str53 = str33;
str52 = str34;
str47 = str32;
str20 = str36;
str51 = str35;
str19 = str29;
String str5722222 = str26;
wXMiniProgramObject = wXMiniProgramObject3;
str43 = str5722222;
unsupportedEncodingException.printStackTrace();
String str55222222 = str14;
wXMiniProgramObject2 = wXMiniProgramObject;
wXMiniProgramObject2.path = "pages/activity/voucher/main?dispenseRecordId=" + str19 + "&md5=" + str20 + "&dispenseUserId=" + str43 + str13 + j3 + str17 + str24 + str16 + str18 + str15 + str47 + str55222222 + str21 + str53 + str22 + str52 + str23 + str51 + i3;
com.tencent.mm.opensdk.modelmsg.WXMediaMessage wXMediaMessage222222 = new com.tencent.mm.opensdk.modelmsg.WXMediaMessage(wXMiniProgramObject2);
wXMediaMessage222222.title = str;
wXMediaMessage222222.description = str2;
View inflate222222 = LayoutInflater.from(context).inflate(R.layout.layout_tickets_mp_bg, (ViewGroup) null, false);
((TextView) inflate222222.findViewById(R.id.tv_invate_info)).setVisibility(8);
((RelativeLayout) inflate222222.findViewById(R.id.rela_root)).setBackground(context.getResources().getDrawable(i2));
int g2222222 = (com.xylink.common.e.d.g(context) * 4) / 5;
String str56222222 = f6715c;
L.i(str56222222, "shareToMinProgram height=" + g2222222);
e.a(inflate222222, com.xylink.common.e.d.g(context), g2222222);
Bitmap b2222222 = e.b(inflate222222);
Bitmap createScaledBitmap222222 = Bitmap.createScaledBitmap(b2222222, 500, 400, true);
b2222222.recycle();
wXMediaMessage222222.thumbData = Util.bmpToByteArray(createScaledBitmap222222, true);
SendMessageToWX.Req req222222 = new SendMessageToWX.Req();
req222222.transaction = "webpage" + System.currentTimeMillis();
req222222.message = wXMediaMessage222222;
req222222.scene = 0;
com.tencent.mm.opensdk.openapi.WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x).sendReq(req222222);
}
} catch (UnsupportedEncodingException e12) {
e = e12;
str41 = str49;
str38 = str50;
str35 = str51;
str36 = str60;
str14 = str54;
unsupportedEncodingException = e;
str22 = str41;
str21 = str40;
str18 = str39;
str24 = str37;
str23 = str38;
str53 = str33;
str52 = str34;
str47 = str32;
str20 = str36;
str51 = str35;
str19 = str29;
String str57222222 = str26;
wXMiniProgramObject = wXMiniProgramObject3;
str43 = str57222222;
unsupportedEncodingException.printStackTrace();
String str552222222 = str14;
wXMiniProgramObject2 = wXMiniProgramObject;
wXMiniProgramObject2.path = "pages/activity/voucher/main?dispenseRecordId=" + str19 + "&md5=" + str20 + "&dispenseUserId=" + str43 + str13 + j3 + str17 + str24 + str16 + str18 + str15 + str47 + str552222222 + str21 + str53 + str22 + str52 + str23 + str51 + i3;
com.tencent.mm.opensdk.modelmsg.WXMediaMessage wXMediaMessage2222222 = new com.tencent.mm.opensdk.modelmsg.WXMediaMessage(wXMiniProgramObject2);
wXMediaMessage2222222.title = str;
wXMediaMessage2222222.description = str2;
View inflate2222222 = LayoutInflater.from(context).inflate(R.layout.layout_tickets_mp_bg, (ViewGroup) null, false);
((TextView) inflate2222222.findViewById(R.id.tv_invate_info)).setVisibility(8);
((RelativeLayout) inflate2222222.findViewById(R.id.rela_root)).setBackground(context.getResources().getDrawable(i2));
int g22222222 = (com.xylink.common.e.d.g(context) * 4) / 5;
String str562222222 = f6715c;
L.i(str562222222, "shareToMinProgram height=" + g22222222);
e.a(inflate2222222, com.xylink.common.e.d.g(context), g22222222);
Bitmap b22222222 = e.b(inflate2222222);
Bitmap createScaledBitmap2222222 = Bitmap.createScaledBitmap(b22222222, 500, 400, true);
b22222222.recycle();
wXMediaMessage2222222.thumbData = Util.bmpToByteArray(createScaledBitmap2222222, true);
SendMessageToWX.Req req2222222 = new SendMessageToWX.Req();
req2222222.transaction = "webpage" + System.currentTimeMillis();
req2222222.message = wXMediaMessage2222222;
req2222222.scene = 0;
com.tencent.mm.opensdk.openapi.WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x).sendReq(req2222222);
}
} catch (UnsupportedEncodingException e13) {
e = e13;
str37 = str42;
str38 = str50;
str16 = "&moneyAmount=";
str39 = str44;
str15 = "&typeName=";
str32 = str47;
str33 = str53;
str40 = str48;
str34 = str52;
str41 = str49;
str35 = str51;
str36 = str60;
str14 = str54;
unsupportedEncodingException = e;
str22 = str41;
str21 = str40;
str18 = str39;
str24 = str37;
str23 = str38;
str53 = str33;
str52 = str34;
str47 = str32;
str20 = str36;
str51 = str35;
str19 = str29;
String str572222222 = str26;
wXMiniProgramObject = wXMiniProgramObject3;
str43 = str572222222;
unsupportedEncodingException.printStackTrace();
String str5522222222 = str14;
wXMiniProgramObject2 = wXMiniProgramObject;
wXMiniProgramObject2.path = "pages/activity/voucher/main?dispenseRecordId=" + str19 + "&md5=" + str20 + "&dispenseUserId=" + str43 + str13 + j3 + str17 + str24 + str16 + str18 + str15 + str47 + str5522222222 + str21 + str53 + str22 + str52 + str23 + str51 + i3;
com.tencent.mm.opensdk.modelmsg.WXMediaMessage wXMediaMessage22222222 = new com.tencent.mm.opensdk.modelmsg.WXMediaMessage(wXMiniProgramObject2);
wXMediaMessage22222222.title = str;
wXMediaMessage22222222.description = str2;
View inflate22222222 = LayoutInflater.from(context).inflate(R.layout.layout_tickets_mp_bg, (ViewGroup) null, false);
((TextView) inflate22222222.findViewById(R.id.tv_invate_info)).setVisibility(8);
((RelativeLayout) inflate22222222.findViewById(R.id.rela_root)).setBackground(context.getResources().getDrawable(i2));
int g222222222 = (com.xylink.common.e.d.g(context) * 4) / 5;
String str5622222222 = f6715c;
L.i(str5622222222, "shareToMinProgram height=" + g222222222);
e.a(inflate22222222, com.xylink.common.e.d.g(context), g222222222);
Bitmap b222222222 = e.b(inflate22222222);
Bitmap createScaledBitmap22222222 = Bitmap.createScaledBitmap(b222222222, 500, 400, true);
b222222222.recycle();
wXMediaMessage22222222.thumbData = Util.bmpToByteArray(createScaledBitmap22222222, true);
SendMessageToWX.Req req22222222 = new SendMessageToWX.Req();
req22222222.transaction = "webpage" + System.currentTimeMillis();
req22222222.message = wXMediaMessage22222222;
req22222222.scene = 0;
com.tencent.mm.opensdk.openapi.WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x).sendReq(req22222222);
}
} catch (UnsupportedEncodingException e14) {
e = e14;
str29 = str59;
str38 = str50;
str17 = "&voucherId=";
str37 = str42;
str16 = "&moneyAmount=";
}
} catch (UnsupportedEncodingException e15) {
e = e15;
str29 = str45;
str38 = str50;
str14 = str54;
str17 = "&voucherId=";
str37 = str42;
str16 = "&moneyAmount=";
str39 = str44;
str15 = "&typeName=";
str32 = str47;
str33 = str53;
str40 = str48;
str34 = str52;
str41 = str49;
str35 = str51;
str36 = str46;
j3 = j2;
str26 = str43;
wXMiniProgramObject3 = wXMiniProgramObject;
unsupportedEncodingException = e;
str22 = str41;
str21 = str40;
str18 = str39;
str24 = str37;
str23 = str38;
str53 = str33;
str52 = str34;
str47 = str32;
str20 = str36;
str51 = str35;
str19 = str29;
String str5722222222 = str26;
wXMiniProgramObject = wXMiniProgramObject3;
str43 = str5722222222;
unsupportedEncodingException.printStackTrace();
String str55222222222 = str14;
wXMiniProgramObject2 = wXMiniProgramObject;
wXMiniProgramObject2.path = "pages/activity/voucher/main?dispenseRecordId=" + str19 + "&md5=" + str20 + "&dispenseUserId=" + str43 + str13 + j3 + str17 + str24 + str16 + str18 + str15 + str47 + str55222222222 + str21 + str53 + str22 + str52 + str23 + str51 + i3;
com.tencent.mm.opensdk.modelmsg.WXMediaMessage wXMediaMessage222222222 = new com.tencent.mm.opensdk.modelmsg.WXMediaMessage(wXMiniProgramObject2);
wXMediaMessage222222222.title = str;
wXMediaMessage222222222.description = str2;
View inflate222222222 = LayoutInflater.from(context).inflate(R.layout.layout_tickets_mp_bg, (ViewGroup) null, false);
((TextView) inflate222222222.findViewById(R.id.tv_invate_info)).setVisibility(8);
((RelativeLayout) inflate222222222.findViewById(R.id.rela_root)).setBackground(context.getResources().getDrawable(i2));
int g2222222222 = (com.xylink.common.e.d.g(context) * 4) / 5;
String str56222222222 = f6715c;
L.i(str56222222222, "shareToMinProgram height=" + g2222222222);
e.a(inflate222222222, com.xylink.common.e.d.g(context), g2222222222);
Bitmap b2222222222 = e.b(inflate222222222);
Bitmap createScaledBitmap222222222 = Bitmap.createScaledBitmap(b2222222222, 500, 400, true);
b2222222222.recycle();
wXMediaMessage222222222.thumbData = Util.bmpToByteArray(createScaledBitmap222222222, true);
SendMessageToWX.Req req222222222 = new SendMessageToWX.Req();
req222222222.transaction = "webpage" + System.currentTimeMillis();
req222222222.message = wXMediaMessage222222222;
req222222222.scene = 0;
com.tencent.mm.opensdk.openapi.WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x).sendReq(req222222222);
}
} catch (UnsupportedEncodingException e16) {
e = e16;
str29 = str45;
str14 = str54;
str17 = "&voucherId=";
str13 = "×tamp=";
str37 = str42;
str38 = str50;
str16 = "&moneyAmount=";
}
} catch (UnsupportedEncodingException e17) {
str29 = str45;
str14 = str54;
str17 = "&voucherId=";
str13 = "×tamp=";
String str62 = str42;
str16 = "&moneyAmount=";
String str63 = str44;
str15 = "&typeName=";
str32 = str47;
str33 = str53;
String str64 = str48;
str34 = str52;
String str65 = str49;
str35 = str51;
str36 = str46;
j3 = j2;
str26 = str43;
wXMiniProgramObject3 = wXMiniProgramObject;
str23 = str12;
unsupportedEncodingException = e17;
str22 = str65;
str21 = str64;
str18 = str63;
str24 = str62;
}
} catch (UnsupportedEncodingException e18) {
String str66 = str45;
str14 = str54;
str17 = "&voucherId=";
str13 = "×tamp=";
j3 = j2;
String str67 = str42;
str16 = "&moneyAmount=";
String str68 = str44;
str15 = "&typeName=";
String str69 = str48;
str26 = str43;
wXMiniProgramObject3 = wXMiniProgramObject;
str20 = str46;
str22 = str11;
str23 = str12;
unsupportedEncodingException = e18;
str51 = str51;
str21 = str69;
str18 = str68;
str24 = str67;
str19 = str66;
str53 = str53;
str47 = str47;
String str57222222222 = str26;
wXMiniProgramObject = wXMiniProgramObject3;
str43 = str57222222222;
unsupportedEncodingException.printStackTrace();
String str552222222222 = str14;
wXMiniProgramObject2 = wXMiniProgramObject;
wXMiniProgramObject2.path = "pages/activity/voucher/main?dispenseRecordId=" + str19 + "&md5=" + str20 + "&dispenseUserId=" + str43 + str13 + j3 + str17 + str24 + str16 + str18 + str15 + str47 + str552222222222 + str21 + str53 + str22 + str52 + str23 + str51 + i3;
com.tencent.mm.opensdk.modelmsg.WXMediaMessage wXMediaMessage2222222222 = new com.tencent.mm.opensdk.modelmsg.WXMediaMessage(wXMiniProgramObject2);
wXMediaMessage2222222222.title = str;
wXMediaMessage2222222222.description = str2;
View inflate2222222222 = LayoutInflater.from(context).inflate(R.layout.layout_tickets_mp_bg, (ViewGroup) null, false);
((TextView) inflate2222222222.findViewById(R.id.tv_invate_info)).setVisibility(8);
((RelativeLayout) inflate2222222222.findViewById(R.id.rela_root)).setBackground(context.getResources().getDrawable(i2));
int g22222222222 = (com.xylink.common.e.d.g(context) * 4) / 5;
String str562222222222 = f6715c;
L.i(str562222222222, "shareToMinProgram height=" + g22222222222);
e.a(inflate2222222222, com.xylink.common.e.d.g(context), g22222222222);
Bitmap b22222222222 = e.b(inflate2222222222);
Bitmap createScaledBitmap2222222222 = Bitmap.createScaledBitmap(b22222222222, 500, 400, true);
b22222222222.recycle();
wXMediaMessage2222222222.thumbData = Util.bmpToByteArray(createScaledBitmap2222222222, true);
SendMessageToWX.Req req2222222222 = new SendMessageToWX.Req();
req2222222222.transaction = "webpage" + System.currentTimeMillis();
req2222222222.message = wXMediaMessage2222222222;
req2222222222.scene = 0;
com.tencent.mm.opensdk.openapi.WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x).sendReq(req2222222222);
}
} catch (UnsupportedEncodingException e19) {
e = e19;
j3 = j2;
str14 = str54;
str17 = "&voucherId=";
str13 = "×tamp=";
str25 = str42;
str16 = "&moneyAmount=";
str27 = str44;
str15 = "&typeName=";
str26 = str43;
wXMiniProgramObject3 = wXMiniProgramObject;
str19 = str7;
}
} catch (UnsupportedEncodingException e20) {
j3 = j2;
str14 = str54;
str15 = "&typeName=";
str17 = "&voucherId=";
str13 = "×tamp=";
str25 = str42;
str16 = "&moneyAmount=";
str26 = str43;
wXMiniProgramObject3 = wXMiniProgramObject;
str18 = str6;
str19 = str7;
str20 = str8;
str47 = str9;
str21 = str10;
str22 = str11;
str23 = str12;
unsupportedEncodingException = e20;
}
} catch (UnsupportedEncodingException e21) {
j3 = j2;
str14 = str54;
str15 = "&typeName=";
str17 = "&voucherId=";
str13 = "×tamp=";
String str70 = str42;
str16 = "&moneyAmount=";
str43 = str5;
str18 = str6;
str19 = str7;
str20 = str8;
str47 = str9;
str21 = str10;
str22 = str11;
str23 = str12;
unsupportedEncodingException = e21;
str24 = str70;
}
} catch (UnsupportedEncodingException e22) {
j3 = j2;
str13 = "×tamp=";
str14 = str54;
str15 = "&typeName=";
str16 = "&moneyAmount=";
str17 = "&voucherId=";
str18 = str6;
str19 = str7;
str20 = str8;
str47 = str9;
str21 = str10;
str22 = str11;
str23 = str12;
unsupportedEncodingException = e22;
wXMiniProgramObject = wXMiniProgramObject4;
str24 = str4;
str43 = str5;
}
com.tencent.mm.opensdk.modelmsg.WXMediaMessage wXMediaMessage22222222222 = new com.tencent.mm.opensdk.modelmsg.WXMediaMessage(wXMiniProgramObject2);
wXMediaMessage22222222222.title = str;
wXMediaMessage22222222222.description = str2;
View inflate22222222222 = LayoutInflater.from(context).inflate(R.layout.layout_tickets_mp_bg, (ViewGroup) null, false);
((TextView) inflate22222222222.findViewById(R.id.tv_invate_info)).setVisibility(8);
((RelativeLayout) inflate22222222222.findViewById(R.id.rela_root)).setBackground(context.getResources().getDrawable(i2));
int g222222222222 = (com.xylink.common.e.d.g(context) * 4) / 5;
String str5622222222222 = f6715c;
L.i(str5622222222222, "shareToMinProgram height=" + g222222222222);
e.a(inflate22222222222, com.xylink.common.e.d.g(context), g222222222222);
Bitmap b222222222222 = e.b(inflate22222222222);
Bitmap createScaledBitmap22222222222 = Bitmap.createScaledBitmap(b222222222222, 500, 400, true);
b222222222222.recycle();
wXMediaMessage22222222222.thumbData = Util.bmpToByteArray(createScaledBitmap22222222222, true);
SendMessageToWX.Req req22222222222 = new SendMessageToWX.Req();
req22222222222.transaction = "webpage" + System.currentTimeMillis();
req22222222222.message = wXMediaMessage22222222222;
req22222222222.scene = 0;
com.tencent.mm.opensdk.openapi.WXAPIFactory.createWXAPI(context, com.ainemo.android.b.x).sendReq(req22222222222);
}
}