OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 f.java 源代码,内容仅作参考
package com.excelliance.kxqp.gs.ui.gameaccount;
import android.content.Context;
import android.os.Handler;
import android.os.HandlerThread;
import android.util.Log;
import com.excelliance.kxqp.gs.bean.RiotAccountPriceBean;
import com.excelliance.kxqp.gs.thpool.tp;
import com.excelliance.kxqp.gs.ui.gameaccount.e;
import com.excelliance.kxqp.gs.util.az;
import com.excelliance.kxqp.gs.util.bd;
import com.excelliance.kxqp.task.model.BuyGoogleAccountSupportPayResult;
import com.excelliance.kxqp.task.model.ResponseData;
import com.excelliance.kxqp.task.model.YLBuyStatusResult;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
public class f implements e.a {
private Context f9461a;
private e.b f9462b;
private Handler c;
@Override
public void initData() {
}
public f(Context context, e.b bVar) {
this.f9461a = context;
this.f9462b = bVar;
HandlerThread handlerThread = new HandlerThread("RiotAccountPresenter", 10);
handlerThread.start();
this.c = new Handler(handlerThread.getLooper());
}
public void a() {
az.d("RiotAccountPresenter", "run getSupportPayList");
this.c.post(new Runnable() {
@Override
public void run() {
final ResponseData<BuyGoogleAccountSupportPayResult> e = com.excelliance.kxqp.task.store.b.a(f.this.f9461a).e();
if (e.code == 1) {
if (f.this.f9462b != null) {
f.this.f9462b.a(e.data);
return;
}
return;
}
tp.i(new Runnable() {
@Override
public void run() {
if (f.this.f9461a != null) {
com.excelliance.kxqp.task.store.c.a(f.this.f9461a, e.msg);
}
}
});
}
});
}
public void b() {
this.c.post(new Runnable() {
@Override
public void run() {
final String a2 = bd.a("https://api.ourplay.com.cn/coupon/get-riot-set", com.excelliance.kxqp.api.f.a(f.this.f9461a).toString());
if (a2 != null) {
tp.i(new Runnable() {
@Override
public void run() {
try {
String b2 = com.excelliance.kxqp.task.store.c.b(a2);
Log.d("RiotAccountPresenter", "run: response::" + b2);
ResponseData responseData = (ResponseData) new Gson().a(b2, new TypeToken<ResponseData<RiotAccountPriceBean>>() {
}.getType());
if (f.this.f9462b == null || responseData == null) {
return;
}
f.this.f9462b.a((RiotAccountPriceBean) responseData.data);
} catch (Exception e) {
e.printStackTrace();
Log.e("RiotAccountPresenter", "StoreRepository/buyAccount:" + e.toString());
if (f.this.f9462b != null) {
f.this.f9462b.a((RiotAccountPriceBean) null);
}
}
}
});
}
}
});
}
public void a(final String str, final int i) {
az.d("RiotAccountPresenter", "run queryOderStatus: merOrderId:" + str);
tp.f(new Runnable() {
@Override
public void run() {
final ResponseData<YLBuyStatusResult> a2 = com.excelliance.kxqp.task.store.b.a(f.this.f9461a).a(f.this.f9461a, str, i);
tp.i(new Runnable() {
@Override
public void run() {
if (a2.code == 1) {
if (f.this.f9462b != null) {
f.this.f9462b.a((YLBuyStatusResult) a2.data);
}
} else if (f.this.f9461a != null) {
com.excelliance.kxqp.task.store.c.a(f.this.f9461a, a2.msg);
}
}
});
}
});
}
public void c() {
this.c.getLooper().quit();
this.f9462b = null;
this.f9461a = null;
}
}