Merge branch 'hjb' of git.kingsome.cn:server/game2006api into hjb

This commit is contained in:
hujiabin 2024-02-06 16:53:59 +08:00
commit 3e64eea544
2 changed files with 10 additions and 1 deletions

View File

@ -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 &&

View File

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