OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 d.java 源代码,内容仅作参考
package com.excelliance.user.account.e.d;
import a.q;
import android.content.Context;
import android.util.Log;
import androidx.work.WorkRequest;
import com.excelliance.kxqp.gs.thpool.tp;
import com.excelliance.kxqp.gs.util.ag;
import com.excelliance.user.account.R;
import com.excelliance.user.account.b;
import com.excelliance.user.account.data.PhoneCard;
import com.excelliance.user.account.data.ResponseData;
import com.excelliance.user.account.f.e;
import com.zero.support.core.task.Response;
import org.json.JSONException;
import org.json.JSONObject;
import retrofit2.m;
public class d implements b.e {
public volatile boolean f15516a = false;
public volatile boolean f15517b = false;
private Context c;
private b.n d;
@Override
public void a() {
}
public d(Context context, b.n nVar) {
this.c = context;
this.d = nVar;
}
public void a(final String str) {
this.f15516a = false;
this.f15517b = false;
tp.f(new Runnable() {
@Override
public void run() {
m<ResponseData<PhoneCard>> mVar;
long currentTimeMillis = System.currentTimeMillis();
e.b("PresenterPhoneNumberLogin", "tryLogin/currentTimeSecret:" + com.excelliance.kxqp.gs.util.c.a(currentTimeMillis + "") + " currentTime:" + currentTimeMillis);
q a2 = new q.a().a("phoneNum", str).a();
ResponseData<PhoneCard> responseData = new ResponseData<>();
m<ResponseData<PhoneCard>> mVar2 = null;
try {
mVar = com.excelliance.user.account.d.a.a().a(d.this.c, WorkRequest.DEFAULT_BACKOFF_DELAY_MILLIS, WorkRequest.DEFAULT_BACKOFF_DELAY_MILLIS, "https://api.ourplay.com.cn/").c(a2).a();
try {
if (mVar.c()) {
responseData = mVar.d();
} else {
responseData.msg = mVar.b();
}
} catch (Exception e) {
mVar2 = mVar;
e = e;
e.printStackTrace();
Log.e("PresenterPhoneNumberLogin", "UpdateManager/getWePlayData:" + e.toString());
responseData.msg = e.toString();
mVar = mVar2;
if (mVar != null) {
}
}
} catch (Exception e2) {
e = e2;
}
if (mVar != null) {
d.this.b(d.this.c.getString(R.string.account_server_exception));
return;
}
if (responseData.data == null) {
d.this.b(d.this.c.getString(R.string.account_server_exception));
return;
}
String str2 = responseData.data.taskId;
if (responseData.code == 1) {
d.this.b(str2, str);
} else {
d.this.b(responseData.msg);
}
}
});
}
public void b(String str, String str2) {
final String str3;
long currentTimeMillis = System.currentTimeMillis();
e.b("PresenterPhoneNumberLogin", "tryLogin/currentTimeSecret:" + com.excelliance.kxqp.gs.util.c.a(currentTimeMillis + "") + " currentTime:" + currentTimeMillis);
Response<String> a2 = ((com.excelliance.user.account.a.a) com.zero.support.core.api.a.a(com.excelliance.user.account.a.a.class)).b(new q.a().a("phoneNum", str2).a("taskId", str).a("sign", ag.a("zmxxkj_" + str + "_" + str2 + "_simlogin", "UTF-8")).a()).c().a();
if (1 == a2.f()) {
try {
str3 = new JSONObject(com.excelliance.kxqp.gs.util.c.a(a2.d(), "fuck_snsslmm_bslznw", "utf-8")).optJSONObject("uinfo").toString();
} catch (JSONException e) {
e.printStackTrace();
str3 = "";
}
tp.i(new Runnable() {
@Override
public void run() {
d.this.d.b(str3);
}
});
return;
}
if (1111 == a2.f()) {
if (!this.f15517b) {
this.f15517b = true;
tp.f(b());
}
if (!this.f15516a) {
a(str, str2);
return;
} else {
b("超时");
return;
}
}
String e2 = a2.e();
if (a2.h() != null) {
b(this.c.getString(R.string.account_server_exception));
} else {
b(e2);
}
}
public void b(final String str) {
tp.i(new Runnable() {
@Override
public void run() {
d.this.d.a(str);
}
});
}
public void a(String str, String str2) {
try {
Thread.sleep(500L);
b(str, str2);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
public Runnable b() {
return new Runnable() {
@Override
public void run() {
try {
Thread.sleep(WorkRequest.DEFAULT_BACKOFF_DELAY_MILLIS);
d.this.f15516a = true;
} catch (InterruptedException e) {
e.printStackTrace();
}
}
};
}
}