OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 n.java 源代码,内容仅作参考
package com.excelliance.kxqp.gs.gamelanguage;
import android.content.Context;
import android.text.TextUtils;
import android.util.Log;
import com.excelliance.kxqp.api.ApiManager;
import com.excelliance.kxqp.bean.BaiduImgCipher;
import com.excelliance.kxqp.gs.appstore.model.ResponseData;
import com.excelliance.kxqp.gs.thpool.tp;
import com.excelliance.kxqp.gs.util.cg;
import org.json.JSONObject;
public class n {
interface a {
void a(int i, String str);
}
public static void a(final String str, final Context context, final a aVar) {
tp.f(new Runnable() {
@Override
public void run() {
String str2;
str2 = "";
int i = 0;
try {
try {
com.excelliance.kxqp.api.c cVar = new com.excelliance.kxqp.api.c(context);
cVar.a(ApiManager.getInstance().a(context, 15000L, 15000L, "https://api.ourplay.com.cn/").b("baidu_screen_zh"));
ResponseData b2 = cVar.b();
if (b2.code == 1) {
if (b2.data == 0 || TextUtils.isEmpty(((BaiduImgCipher) b2.data).getJson())) {
i = -2;
n.b(context, -2, str, "get baidu secretKey, responseData.data.json=【empty】");
} else {
String optString = new JSONObject(((BaiduImgCipher) b2.data).getJson()).optString("secretKey");
str2 = TextUtils.isEmpty(optString) ? "" : com.excelliance.kxqp.gs.util.c.b(optString);
if (TextUtils.isEmpty(str2)) {
i = -1;
n.b(context, -1, str, "get baidu secretKey failed,value=【" + optString + "】");
}
}
} else {
i = -3;
n.b(context, -3, str, "get baidu secretKey,code=【" + b2.code + "】");
}
if (aVar == null) {
return;
}
} catch (Exception e) {
e.printStackTrace();
i = -4;
n.b(context, -4, str, "get baidu secretKey,msg=【" + e.getMessage() + "】");
if (aVar == null) {
return;
}
}
aVar.a(i, str2);
} catch (Throwable th) {
if (aVar != null) {
aVar.a(0, "");
}
throw th;
}
}
});
}
public static void b(Context context, int i, String str, String str2) {
String str3 = str2 + "(errorCode: " + i + ")";
Log.e(str, str3);
cg.a(context, "拉取配置信息失败,请重试:" + i);
}
}