Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
mumuzi2023 committed Jan 22, 2024
1 parent c42a2f8 commit b22548e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/GameFrame/GameScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion Classes/GameFrame/GameScene.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b22548e

Please sign in to comment.