2.4
发版前更新 新增悬浮窗设置选项
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user