|
|
|
@ -28,7 +28,7 @@ public class GameService {
|
|
|
|
|
public static HashMap<String , String> CheckScore(String name) throws IOException, JSONException {
|
|
|
|
|
|
|
|
|
|
String data = "username=" + URLEncoder.encode(name, "utf-8");//设置数据
|
|
|
|
|
MyThread_score myThread = new MyThread_score("http://10.0.2.2:8080/Manager/qeuryonescore",data);
|
|
|
|
|
MyThread_score myThread = new MyThread_score("http://42.193.97.132:8080/Manager/qeuryonescore",data);
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
myThread.start();
|
|
|
|
@ -82,7 +82,7 @@ public class GameService {
|
|
|
|
|
|
|
|
|
|
public static boolean SaveScore(String name, float score) throws IOException {
|
|
|
|
|
String data = "username=" + URLEncoder.encode(name, "utf-8") + "&score=" + URLEncoder.encode(String.valueOf(score), "utf-8");//设置数据
|
|
|
|
|
MyThread_score myThread = new MyThread_score("http://10.0.2.2:8080/Manager/InsertScore",data);
|
|
|
|
|
MyThread_score myThread = new MyThread_score("http://42.193.97.132:8080/Manager/InsertScore",data);
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
myThread.start();
|
|
|
|
|