OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 f.java 源代码,内容仅作参考
package com.excelliance.kxqp.gs.j;
import android.content.Context;
import android.text.TextUtils;
import com.excelliance.kxqp.gs.b.b;
import com.excelliance.kxqp.gs.thpool.tp;
import com.excelliance.kxqp.gs.util.bd;
import com.excelliance.kxqp.gs.util.bp;
import com.excelliance.kxqp.gs.util.bx;
import com.excelliance.kxqp.gs.util.cn;
import com.excelliance.kxqp.gs.util.t;
import com.zero.support.core.api.j;
import com.zero.support.core.api.v;
import org.json.JSONException;
import org.json.JSONObject;
public class f implements b.a {
private Context f6529a;
private b.InterfaceC0156b f6530b;
@Override
public void initData() {
}
public f(Context context, b.InterfaceC0156b interfaceC0156b) {
this.f6529a = context;
this.f6530b = interfaceC0156b;
}
public void a(final String str) {
tp.f(new Runnable() {
@Override
public void run() {
final String str2;
final String str3;
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("phoneNum", str);
jSONObject.put("position", 5);
} catch (JSONException e) {
e.printStackTrace();
}
String a2 = bp.a(((v) com.zero.support.core.api.a.a(v.class)).a(new j("https://sdk.ourplay.com.cn/account/sendmsgnew.php", jSONObject.toString())).c().a().d(), t.f12027a, "utf-8");
final String str4 = null;
if (TextUtils.isEmpty(a2)) {
str2 = null;
str3 = null;
} else {
try {
JSONObject jSONObject2 = new JSONObject(a2);
str2 = jSONObject2.optString("status");
try {
str3 = jSONObject2.optString("flag");
try {
str4 = jSONObject2.optString("code");
} catch (JSONException e2) {
e = e2;
e.printStackTrace();
tp.i(new Runnable() {
@Override
public void run() {
if (!TextUtils.equals(str2, "1")) {
f.this.f6530b.a(str);
return;
}
if (TextUtils.equals(str3, "0")) {
f.this.f6530b.a(str, str4);
return;
}
if (TextUtils.equals(str3, "1")) {
f.this.f6530b.b_(str);
} else if (TextUtils.equals(str3, "2")) {
f.this.f6530b.c(str);
} else {
f.this.f6530b.a(str);
}
}
});
}
} catch (JSONException e3) {
e = e3;
str3 = null;
}
} catch (JSONException e4) {
e = e4;
str2 = null;
str3 = null;
}
}
tp.i(new Runnable() {
@Override
public void run() {
if (!TextUtils.equals(str2, "1")) {
f.this.f6530b.a(str);
return;
}
if (TextUtils.equals(str3, "0")) {
f.this.f6530b.a(str, str4);
return;
}
if (TextUtils.equals(str3, "1")) {
f.this.f6530b.b_(str);
} else if (TextUtils.equals(str3, "2")) {
f.this.f6530b.c(str);
} else {
f.this.f6530b.a(str);
}
}
});
}
});
}
public void b(final String str) {
tp.f(new Runnable() {
@Override
public void run() {
final int i;
JSONObject i2 = cn.i(f.this.f6529a);
try {
i2.put("phone", str);
i2.put("rid", bx.a().a(f.this.f6529a));
} catch (JSONException e) {
e.printStackTrace();
}
String a2 = bp.a(bd.a("https://api.ourplay.com.cn/user/modify-phone", i2.toString()), "utf-8");
if (TextUtils.isEmpty(a2)) {
i = 0;
} else {
try {
JSONObject jSONObject = new JSONObject(a2);
i = jSONObject.optInt("code");
try {
jSONObject.optString("msg");
} catch (JSONException e2) {
e = e2;
e.printStackTrace();
if (i == 111) {
}
tp.i(new Runnable() {
@Override
public void run() {
if (f.this.f6530b != null) {
if (r2) {
f.this.f6530b.d(str);
} else {
f.this.f6530b.a_(i);
}
}
}
});
}
} catch (JSONException e3) {
e = e3;
i = 0;
}
}
final boolean z = i == 111;
tp.i(new Runnable() {
@Override
public void run() {
if (f.this.f6530b != null) {
if (z) {
f.this.f6530b.d(str);
} else {
f.this.f6530b.a_(i);
}
}
}
});
}
});
}
}