Fast Orange v3.5.3版本的 MD5 值为:33b91aba50c566533dfd683a85f79158
以下内容为反编译后的 XXCreateRequest.java 源代码,内容仅作参考
package com.free.vpn.proxy.hotspot.data.model.billing.xxpay;
import android.text.TextUtils;
import androidx.compose.runtime.internal.StabilityInferred;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.free.vpn.proxy.hotspot.an1;
import com.free.vpn.proxy.hotspot.data.model.analytics.AnalyticsKeysKt;
import com.free.vpn.proxy.hotspot.data.model.billing.Order;
import com.free.vpn.proxy.hotspot.data.model.config.PayMethod;
import com.free.vpn.proxy.hotspot.data.model.config.ProcessingEntity;
import com.free.vpn.proxy.hotspot.ex0;
import com.free.vpn.proxy.hotspot.jf2;
import com.free.vpn.proxy.hotspot.ne2;
import com.free.vpn.proxy.hotspot.t00;
import com.free.vpn.proxy.hotspot.ui.billing.subscription.base.BaseSubscriptionFragment;
import com.free.vpn.proxy.hotspot.x74;
import com.free.vpn.proxy.hotspot.zm2;
import com.free.vpn.proxy.hotspot.zs4;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.TuplesKt;
@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\b\n\u0002\u0010$\n\u0002\b\u0005\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0010\u000b\n\u0002\b\u0006\b\u0087\b\u0018\u0000 -2\u00020\u0001:\u0001-B%\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\t¢\u0006\u0002\u0010\nJ\t\u0010\"\u001a\u00020\u0003HÂ\u0003J\t\u0010#\u001a\u00020\u0005HÂ\u0003J\t\u0010$\u001a\u00020\u0007HÂ\u0003J\t\u0010%\u001a\u00020\tHÂ\u0003J1\u0010&\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\b\b\u0002\u0010\u0006\u001a\u00020\u00072\b\b\u0002\u0010\b\u001a\u00020\tHÆ\u0001J\u0013\u0010'\u001a\u00020(2\b\u0010)\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010*\u001a\u00020\fHÖ\u0001J\b\u0010+\u001a\u00020\u0007H\u0002J\t\u0010,\u001a\u00020\u0007HÖ\u0001R\u0010\u0010\u000b\u001a\u00020\f8\u0002X\u0083\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\r\u001a\u00020\u00078\u0002X\u0083\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u000e\u001a\u00020\u00078\u0002X\u0083D¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u000f\u001a\u00020\f8\u0002X\u0083\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u0010\u001a\u00020\u00078\u0002X\u0083\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u0011\u001a\u00020\u00078\u0002X\u0083\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u0012\u001a\u00020\u00078\u0002X\u0083\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u0013\u001a\u00020\u00078\u0002X\u0083\u0004¢\u0006\u0002\n\u0000R\u001d\u0010\u0014\u001a\u000e\u0012\u0004\u0012\u00020\u0007\u0012\u0004\u0012\u00020\u00070\u00158F¢\u0006\u0006\u001a\u0004\b\u0016\u0010\u0017R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u0018\u001a\u00020\u00078\u0002X\u0083\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u0019\u001a\u00020\u00078\u0002X\u0083\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\b\u001a\u00020\tX\u0082\u0004¢\u0006\u0002\n\u0000R \u0010\u001a\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020\u0007\u0012\u0004\u0012\u00020\u00070\u001c0\u001bX\u0082\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u001d\u001a\u00020\u00078\u0002X\u0083\u0004¢\u0006\u0002\n\u0000R\u0011\u0010\u001e\u001a\u00020\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u001f\u0010 R\u0010\u0010!\u001a\u00020\u00078\u0002X\u0083D¢\u0006\u0002\n\u0000¨\u0006."}, d2 = {"Lcom/free/vpn/proxy/hotspot/data/model/billing/xxpay/XXCreateRequest;", "", BaseSubscriptionFragment.KEY_ORDER, "Lcom/free/vpn/proxy/hotspot/data/model/billing/Order;", "processing", "Lcom/free/vpn/proxy/hotspot/data/model/config/ProcessingEntity;", BaseSubscriptionFragment.KEY_LOGIN, "", "selectedPayMethod", "Lcom/free/vpn/proxy/hotspot/data/model/config/PayMethod;", "(Lcom/free/vpn/proxy/hotspot/data/model/billing/Order;Lcom/free/vpn/proxy/hotspot/data/model/config/ProcessingEntity;Ljava/lang/String;Lcom/free/vpn/proxy/hotspot/data/model/config/PayMethod;)V", "amount", "", XXCreateRequest.K_BODY, XXCreateRequest.K_CURRENCY, "merchantId", XXCreateRequest.K_NOTIFY_URL, AnalyticsKeysKt.KEY_ORDER_ID, "param", XXCreateRequest.K_PARAM_2, "params", "", "getParams", "()Ljava/util/Map;", XXCreateRequest.K_PRODUCT_ID, "reqTime", "signParams", "", "Lkotlin/Pair;", XXCreateRequest.K_SUBJECT, "url", "getUrl", "()Ljava/lang/String;", "version", "component1", "component2", "component3", "component4", "copy", "equals", "", "other", "hashCode", "signParam", "toString", "Companion", "app_chinaSeoDirectBlackRelease"}, k = 1, mv = {1, 8, 0}, xi = ConstraintLayout.LayoutParams.Table.LAYOUT_CONSTRAINT_VERTICAL_CHAINSTYLE)
public final class XXCreateRequest {
private static final String DEFAULT_NOTIFY_URL = "https://purchase.admindtech.com/ipn/xxpay/";
private static final String K_AMOUNT = "amount";
private static final String K_BODY = "body";
private static final String K_CURRENCY = "currency";
private static final String K_MCH_ID = "mchId";
private static final String K_MCH_ORDER_NO = "mchOrderNo";
private static final String K_NOTIFY_URL = "notifyUrl";
private static final String K_PARAM = "param1";
private static final String K_PARAM_2 = "param2";
private static final String K_PRODUCT_ID = "productId";
private static final String K_REQ_TIME = "reqTime";
private static final String K_SIGN = "sign";
private static final String K_SUBJECT = "subject";
private static final String K_VERSION = "version";
@SerializedName("amount")
@Expose
private final int amount;
@SerializedName(K_BODY)
@Expose
private final String body;
@SerializedName(K_CURRENCY)
@Expose
private final String currency;
private final String login;
@SerializedName("mchId")
@Expose
private final int merchantId;
@SerializedName(K_NOTIFY_URL)
@Expose
private final String notifyUrl;
private final Order order;
@SerializedName("mchOrderNo")
@Expose
private final String orderRef;
@SerializedName(K_PARAM)
@Expose
private final String param;
@SerializedName(K_PARAM_2)
@Expose
private final String param2;
private final ProcessingEntity processing;
@SerializedName(K_PRODUCT_ID)
@Expose
private final String productId;
@SerializedName("reqTime")
@Expose
private final String reqTime;
private final PayMethod selectedPayMethod;
private final List<Pair<String, String>> signParams;
@SerializedName(K_SUBJECT)
@Expose
private final String subject;
private final String url;
@SerializedName("version")
@Expose
private final String version;
public static final int $stable = 8;
public XXCreateRequest(Order order, ProcessingEntity processingEntity, String str, PayMethod payMethod) {
String str2;
String str3;
zs4.o(order, BaseSubscriptionFragment.KEY_ORDER);
zs4.o(processingEntity, "processing");
zs4.o(str, BaseSubscriptionFragment.KEY_LOGIN);
zs4.o(payMethod, "selectedPayMethod");
this.order = order;
this.processing = processingEntity;
this.login = str;
this.selectedPayMethod = payMethod;
this.version = "1.0";
int parseInt = Integer.parseInt(processingEntity.getKey());
this.merchantId = parseInt;
if (payMethod == PayMethod.Alipay) {
str2 = "8048";
} else {
str2 = "8052";
}
this.productId = str2;
String orderRef = order.getOrderRef();
this.orderRef = orderRef;
int W = ex0.W(order.getProcessingAmount());
this.amount = W;
this.currency = "cny";
String callbackUrl = processingEntity.getCallbackUrl();
callbackUrl = callbackUrl == null ? DEFAULT_NOTIFY_URL : callbackUrl;
this.notifyUrl = callbackUrl;
String productName = order.getProductName();
this.subject = productName;
String productId = order.getProductId();
this.body = productId;
String a0 = ex0.a0(System.currentTimeMillis(), "yyyyMMddHHmmss");
a0 = a0 == null ? "" : a0;
this.reqTime = a0;
String productName2 = order.getProductName();
this.param = productName2;
if (TextUtils.isDigitsOnly(str)) {
str3 = "phone:";
} else {
str3 = "email:";
}
String str4 = str3 + str;
this.param2 = str4;
this.signParams = zm2.d0(TuplesKt.to("version", "1.0"), TuplesKt.to("mchId", String.valueOf(parseInt)), TuplesKt.to(K_PRODUCT_ID, str2), TuplesKt.to("mchOrderNo", orderRef), TuplesKt.to("amount", String.valueOf(W)), TuplesKt.to(K_CURRENCY, "cny"), TuplesKt.to(K_NOTIFY_URL, callbackUrl), TuplesKt.to(K_SUBJECT, productName), TuplesKt.to(K_BODY, productId), TuplesKt.to("reqTime", a0), TuplesKt.to(K_PARAM, productName2), TuplesKt.to(K_PARAM_2, str4));
String createOrderUrl = processingEntity.getCreateOrderUrl();
this.url = createOrderUrl != null ? createOrderUrl : "";
}
private final Order getOrder() {
return this.order;
}
private final ProcessingEntity getProcessing() {
return this.processing;
}
private final String getLogin() {
return this.login;
}
private final PayMethod getSelectedPayMethod() {
return this.selectedPayMethod;
}
public static XXCreateRequest copy$default(XXCreateRequest xXCreateRequest, Order order, ProcessingEntity processingEntity, String str, PayMethod payMethod, int i, Object obj) {
if ((i & 1) != 0) {
order = xXCreateRequest.order;
}
if ((i & 2) != 0) {
processingEntity = xXCreateRequest.processing;
}
if ((i & 4) != 0) {
str = xXCreateRequest.login;
}
if ((i & 8) != 0) {
payMethod = xXCreateRequest.selectedPayMethod;
}
return xXCreateRequest.copy(order, processingEntity, str, payMethod);
}
private final String signParam() {
List<Pair<String, String>> list = this.signParams;
ArrayList arrayList = new ArrayList();
for (Object obj : list) {
if (!x74.a1((CharSequence) ((Pair) obj).getSecond())) {
arrayList.add(obj);
}
}
return ex0.G(t00.h1(t00.A1(arrayList, new Comparator() {
@Override
public final int compare(T t, T t2) {
return an1.i((String) ((Pair) t).getFirst(), (String) ((Pair) t2).getFirst());
}
}), "&", null, null, XXCreateRequest$signParam$signString$3.INSTANCE, 30) + "&key=" + this.processing.getToken());
}
public final XXCreateRequest copy(Order order, ProcessingEntity processing, String login, PayMethod selectedPayMethod) {
zs4.o(order, BaseSubscriptionFragment.KEY_ORDER);
zs4.o(processing, "processing");
zs4.o(login, BaseSubscriptionFragment.KEY_LOGIN);
zs4.o(selectedPayMethod, "selectedPayMethod");
return new XXCreateRequest(order, processing, login, selectedPayMethod);
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof XXCreateRequest)) {
return false;
}
XXCreateRequest xXCreateRequest = (XXCreateRequest) other;
return zs4.h(this.order, xXCreateRequest.order) && zs4.h(this.processing, xXCreateRequest.processing) && zs4.h(this.login, xXCreateRequest.login) && this.selectedPayMethod == xXCreateRequest.selectedPayMethod;
}
public final Map<String, String> getParams() {
return ne2.i0(t00.s1(TuplesKt.to("sign", signParam()), this.signParams));
}
public final String getUrl() {
return this.url;
}
public int hashCode() {
return this.selectedPayMethod.hashCode() + jf2.h(this.login, (this.processing.hashCode() + (this.order.hashCode() * 31)) * 31, 31);
}
public String toString() {
return "XXCreateRequest(order=" + this.order + ", processing=" + this.processing + ", login=" + this.login + ", selectedPayMethod=" + this.selectedPayMethod + ")";
}
}