|
@@ -53,7 +53,7 @@ public class DataService {
|
|
|
|
|
|
public String postWithParameters(String url, Map<String, String> map) {
|
|
public String postWithParameters(String url, Map<String, String> map) {
|
|
|
|
|
|
- FormBody.Builder formbody = new FormBody.Builder();
|
|
|
|
|
|
+FormBody.Builder formbody = new FormBody.Builder();
|
|
|
|
|
|
for (Map.Entry<String, String> entry : map.entrySet()) {
|
|
for (Map.Entry<String, String> entry : map.entrySet()) {
|
|
formbody.add(entry.getKey(), entry.getValue());
|
|
formbody.add(entry.getKey(), entry.getValue());
|
|
@@ -72,7 +72,7 @@ public class DataService {
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
// TODO Auto-generated catch block
|
|
// TODO Auto-generated catch block
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
- return "wrong"+e.toString();
|
|
|
|
|
|
+ return null;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|