萝莉来了 v1.2.1版本的 MD5 值为:6055c21e001561c5b114d0da5b392fcb
以下内容为反编译后的 g.java 源代码,内容仅作参考
package org.cocos2dx.a;
import android.content.SharedPreferences;
import org.cocos2dx.PBInstance;
import org.json.JSONObject;
public final class g extends Thread {
@Override
public final void run() {
boolean z = false;
SharedPreferences sharedPreferences = org.cocos2dx.d.c.a().getSharedPreferences("iapRreference", 0);
String string = sharedPreferences.getString("confirmKey", "");
if (string.length() > 0) {
try {
String str = PBInstance.getTestUrlEnabled() ? "http://117.121.56.146/appark/www/?p1/doput" : "http://stat.punchbox.org/?p1/doput";
String a = org.cocos2dx.d.b.a(str, string);
PBInstance.LogD("PBDataStat", "confirmPay url : " + str);
PBInstance.LogD("PBDataStat", "confirmPay param : " + string);
PBInstance.LogD("PBDataStat", "confirmPay ret : " + a);
if (a != null && new JSONObject(a).getString("status").equals("ok")) {
z = true;
}
if (z) {
SharedPreferences.Editor edit = sharedPreferences.edit();
edit.putString("prepareKey", "");
edit.putString("confirmKey", "");
edit.commit();
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
}