From 18d5aa7d0cfa1748a8a4a47588e64811ad12dae0 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 26 Jan 2024 16:48:16 +0800 Subject: [PATCH 1/2] 1 --- webapp/controller/BoxController.class.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/webapp/controller/BoxController.class.php b/webapp/controller/BoxController.class.php index 63943b4b..3c210125 100644 --- a/webapp/controller/BoxController.class.php +++ b/webapp/controller/BoxController.class.php @@ -52,7 +52,15 @@ class BoxController extends BaseAuthedController { )); $payload = ''; return;*/ - $mode = getReqVal('room_mode', 0); + $mode = 0; + { + $rawData = getReqVal('payload', ''); + $customData = strstr($rawData, '|'); + $customData = substr($customData, 1); + $data = json_decode($customData, true); + $mode = $data['room_mode']; + error_log($customData); + } $item = array(); $currentMeta = \mt\ServerTaskTime::getCurrentTime(); if ($currentMeta && From dba5d715fea7dd1f78fbc58cde112db49083d147 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 29 Jan 2024 16:03:11 +0800 Subject: [PATCH 2/2] 1 --- webapp/models/Nft.php | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/models/Nft.php b/webapp/models/Nft.php index 3f44cc76..056f5d6b 100644 --- a/webapp/models/Nft.php +++ b/webapp/models/Nft.php @@ -26,6 +26,7 @@ class Nft extends BaseModel const GENESIS_TYPE = 7; //创世徽章 const PLANET_TYPE = 8; //星球 const EXPLORER_TYPE = 9; //Explorer + const CANDY_TYPE = 10; //CANDY const RING_TYPE = 19; //戒指 const AVATAR_TYPE = 30; //装饰