diff --git a/Classes/GameFrame/GameScene.cpp b/Classes/GameFrame/GameScene.cpp index 9bf3498..1e77e1a 100644 --- a/Classes/GameFrame/GameScene.cpp +++ b/Classes/GameFrame/GameScene.cpp @@ -271,7 +271,7 @@ void GameScene::getmove(float dt) { // 创建一个HttpRequest对象 network::HttpRequest* request = new network::HttpRequest(); // 设置请求的URL - request->setUrl("http://10.24.50.187:9092/cpp/get?c=" + id); + request->setUrl("http://10.24.50.187:9092/cpp/get?c=1"); // 设置请求方式为POST request->setRequestType(network::HttpRequest::Type::POST); diff --git a/Classes/GameFrame/GameScene.h b/Classes/GameFrame/GameScene.h index 383287a..60fc7b2 100644 --- a/Classes/GameFrame/GameScene.h +++ b/Classes/GameFrame/GameScene.h @@ -109,7 +109,7 @@ class GameScene : public Layer { // 创建一个HttpRequest对象 network::HttpRequest* request = new network::HttpRequest(); // 设置请求的URL - request->setUrl("http://10.24.50.187:9092/cpp/add?c="+id+"&m="+str); + request->setUrl("http://10.24.50.187:9092/cpp/add?c=1&m="+str); // 设置请求方式为POST request->setRequestType(network::HttpRequest::Type::POST);