From b0dab58c76f446439e14edaa513936e267baa26c Mon Sep 17 00:00:00 2001 From: Jeff Wang Date: Sat, 3 Feb 2024 00:26:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9URL=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Classes/Other/OtherScene.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Classes/Other/OtherScene.cpp b/Classes/Other/OtherScene.cpp index c29850c9..c704551a 100644 --- a/Classes/Other/OtherScene.cpp +++ b/Classes/Other/OtherScene.cpp @@ -6,6 +6,8 @@ USING_NS_CC; +#define WWW_PATH "https://summerinsects.github.io/ChineseOfficialMahjongHelper/" + static std::string g_text; bool OtherScene::init() { @@ -80,5 +82,7 @@ void OtherScene::onCompetitionButton(cocos2d::Ref *) { void OtherScene::onRecreationsButton(cocos2d::Ref *) { Director::getInstance()->pushScene( - CommonWebViewScene::create(__UTF8("娱乐消遣"), "http://www.tziakcha.xyz/almanac.html", CommonWebViewScene::ContentType::URL)); + CommonWebViewScene::create(__UTF8("娱乐消遣"), + WWW_PATH "almanac.html", + CommonWebViewScene::ContentType::URL)); }