发版前更新
新增悬浮窗设置选项
This commit is contained in:
2020-04-01 18:00:52 +08:00
parent 458206ae23
commit 8e5775b45b
36 changed files with 384 additions and 168 deletions

View File

@@ -36,7 +36,7 @@ public class PluginHttpTools {
}
public void httpGet(final String url, final PluginHttpInterface networkInterface) {
System.out.println("HTTP>>>>"+url);
Log.i("HTTP>>>>"+url);
new Thread(new Runnable() {
@Override
public void run() {
@@ -61,17 +61,17 @@ public class PluginHttpTools {
}
public static void post(final String url, final JSONObject body, final PluginHttpInterface networkInterface) throws Exception{
System.out.println(1);
Log.i(1);
new Thread(new Runnable() {
@Override
public void run() {
System.out.println(2);
Log.i(2);
String tmp, str = "";
try {
System.out.println(3);
Log.i(3);
HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
connection.connect();
System.out.println(4);
Log.i(4);
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
while ((tmp = reader.readLine()) != null) {
str += tmp;

View File

@@ -34,7 +34,7 @@ public class PlugsAdTools {
if(json.getInt("code")==100){
JSONObject data=json.getJSONObject("data");
final String msg=data.getString("msg");
System.out.println("服务器回调:"+msg);
Log.i("服务器回调:"+msg);
if(data.getInt("code")==100){
MainActivity.handler.post(new Runnable() {
@Override