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 && 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; //装饰