Swiggy v4.51.1版本的 MD5 值为:5af7ec91512a0a8c1510e3f8bac20b8b
以下内容为反编译后的 DeeplinkUtils.java 源代码,内容仅作参考
package in.swiggy.guidedshopping.utils;
import android.net.Uri;
import com.xiaomi.mipush.sdk.Constants;
import java.util.List;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.o;
public final class DeeplinkUtils {
public static final DeeplinkUtils a = new DeeplinkUtils();
private DeeplinkUtils() {
}
public static String c(DeeplinkUtils deeplinkUtils, String str, List list, String str2, String str3, String str4, int i, int i2, Object obj) {
if ((i2 & 32) != 0) {
i = 0;
}
return deeplinkUtils.b(str, list, str2, str3, str4, i);
}
public static String e(DeeplinkUtils deeplinkUtils, String str, List list, String str2, String str3, String str4, int i, int i2, Object obj) {
if ((i2 & 32) != 0) {
i = 0;
}
return deeplinkUtils.d(str, list, str2, str3, str4, i);
}
public final String a(String restaurantId, List<String> menuItemIds) {
String t0;
o.k(restaurantId, "restaurantId");
o.k(menuItemIds, "menuItemIds");
t0 = CollectionsKt___CollectionsKt.t0(menuItemIds, Constants.ACCEPT_TIME_SEPARATOR_SP, null, null, 0, null, new Function1<String, CharSequence>() {
@Override
public final CharSequence invoke(String it) {
o.k(it, "it");
return it;
}
}, 30, null);
String encode = Uri.encode("https://webviews.swiggy.com/feedback/guided_feedback.html?context=GuidedShoppingFeedback&restaurant_id=" + restaurantId + "&menu_item_ids=" + t0);
return "swiggy://externalWidget?banner_type=WEBVIEW&card_type=HALF_CARD&url=" + encode;
}
public final String b(String restaurantId, List<String> menuItemIds, String str, String str2, String str3, int i) {
String t0;
o.k(restaurantId, "restaurantId");
o.k(menuItemIds, "menuItemIds");
t0 = CollectionsKt___CollectionsKt.t0(menuItemIds, Constants.ACCEPT_TIME_SEPARATOR_SP, null, null, 0, null, new Function1<String, CharSequence>() {
@Override
public final CharSequence invoke(String it) {
o.k(it, "it");
return it;
}
}, 30, null);
String encode = Uri.encode("https://webviews.swiggy.com/feedback/modular_cart.html?context=ModularCartFeedback&restaurant_id=" + restaurantId + "&menu_item_ids=" + t0 + "&comms=" + str + "&collection_id=" + str2 + "&request_id=" + str3 + "&is_relevant=" + i);
return "swiggy://externalWidget?banner_type=WEBVIEW&card_type=HALF_CARD&url=" + encode;
}
public final String d(String restaurantId, List<String> menuItemIds, String str, String str2, String str3, int i) {
String t0;
o.k(restaurantId, "restaurantId");
o.k(menuItemIds, "menuItemIds");
t0 = CollectionsKt___CollectionsKt.t0(menuItemIds, Constants.ACCEPT_TIME_SEPARATOR_SP, null, null, 0, null, new Function1<String, CharSequence>() {
@Override
public final CharSequence invoke(String it) {
o.k(it, "it");
return it;
}
}, 30, null);
String encode = Uri.encode("https://webviews.swiggy.com/feedback/cart_comparison.html?context=CartComparisonFeedback&restaurant_id=" + restaurantId + "&menu_item_ids=" + t0 + "&comms=" + str + "&collection_id=" + str2 + "&request_id=" + str3 + "&is_relevant=" + i);
return "swiggy://externalWidget?banner_type=WEBVIEW&card_type=HALF_CARD&url=" + encode;
}
}