OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 j.java 源代码,内容仅作参考
package com.excelliance.kxqp.gs.ui.gaccount;
import a.q;
import android.content.Context;
import android.os.Handler;
import android.os.HandlerThread;
import com.excelliance.kxqp.api.ApiManager;
import com.excelliance.kxqp.gs.appstore.model.ResponseData;
import com.excelliance.kxqp.gs.ui.account.GaActionBean;
import com.excelliance.kxqp.gs.ui.account.SingleGaActionGetResult;
import com.excelliance.kxqp.gs.ui.gaccount.i;
import com.excelliance.kxqp.gs.util.az;
import com.excelliance.kxqp.gs.util.bx;
import com.excelliance.kxqp.gs.util.by;
public class j implements i.a {
private Context f9300a;
private i.b f9301b;
private Handler c;
private final com.excelliance.kxqp.gs.ui.nyactivitys.b d;
public j(Context context, i.b bVar) {
this.f9300a = context;
this.f9301b = bVar;
HandlerThread handlerThread = new HandlerThread("LoginGAGetVipPresenter", 10);
handlerThread.start();
this.c = new Handler(handlerThread.getLooper());
this.d = new com.excelliance.kxqp.gs.ui.nyactivitys.b();
}
@Override
public void initData() {
a(0);
}
@Override
public void a(int i) {
if (i == 2) {
a(1, 2, i);
} else {
a(0, 0, i);
}
}
private void a(final int i, final int i2, final int i3) {
this.c.post(new Runnable() {
@Override
public void run() {
az.d("LoginGAGetVipPresenter", "getLoginGoogleActionSate: loginGoogleAccountStatus:" + i + " initType:" + i2);
com.excelliance.kxqp.api.c cVar = new com.excelliance.kxqp.api.c(j.this.f9300a);
cVar.a(ApiManager.getInstance().a(j.this.f9300a, 15000L, 15000L, "https://gapi.ourplay.com.cn/").c(new q.a().a("type", i2 + "").a("status", i + "").a()));
ResponseData b2 = cVar.b();
az.d("LoginGAGetVipPresenter", "getLoginGoogleActionSate responseData:" + b2);
if (b2 == null || b2.data == 0) {
if (j.this.f9301b != null) {
j.this.d.execute(new Runnable() {
@Override
public void run() {
j.this.f9301b.a((GaActionBean) null);
}
});
return;
}
return;
}
final GaActionBean gaActionBean = (GaActionBean) b2.data;
if (i3 == 2 && gaActionBean.loginstate == 2) {
by.a(j.this.f9300a.getApplicationContext(), "sp_total_info").a("sp_key_login_google_account_upload", true);
}
gaActionBean.loginOP = !bx.a().b(j.this.f9300a);
if (j.this.f9301b != null) {
j.this.d.execute(new Runnable() {
@Override
public void run() {
j.this.f9301b.a(gaActionBean);
}
});
}
}
});
}
@Override
public void b(final int i) {
this.c.post(new Runnable() {
@Override
public void run() {
com.excelliance.kxqp.api.c cVar = new com.excelliance.kxqp.api.c(j.this.f9300a);
cVar.a(ApiManager.getInstance().a(j.this.f9300a, 15000L, 15000L, "https://gapi.ourplay.com.cn/").d(new q.a().a("type", i + "").a()));
final ResponseData b2 = cVar.b();
az.d("LoginGAGetVipPresenter", "getGift responseData:" + b2);
if (j.this.f9301b != null) {
j.this.d.execute(new Runnable() {
@Override
public void run() {
if (b2.data != 0) {
((SingleGaActionGetResult) b2.data).giftType = i;
}
j.this.f9301b.a((SingleGaActionGetResult) b2.data);
}
});
}
}
});
}
@Override
public void a() {
this.f9301b = null;
this.c.getLooper().quit();
}
}