This commit is contained in:
aozhiwei 2024-08-19 16:37:05 +08:00
parent 6fcb3e1879
commit d6016abac1
5 changed files with 8 additions and 1 deletions

View File

@ -406,7 +406,7 @@ class BaseController {
}
}
public static function verifySwitch($name) {
public static function _verifySwitch($name) {
myself()->_callServiceStatic('ServerSwitchService', 'verifySwitch', $name);
}

View File

@ -54,6 +54,7 @@ class BigwheelController extends BaseAuthedController {
public function drawS()
{
myself()->_verifySwitch('bigWheel');
$drawType = getReqVal('type', 0);
if (!($drawType == 0 || $drawType == 1 || $drawType == 2)) {
myself()->_rspErr(2, 'type param error');
@ -293,6 +294,7 @@ class BigwheelController extends BaseAuthedController {
public function buyS()
{
myself()->_verifySwitch('bigWheel');
$key = $this->getMidDataKey();
$data = $this->getAndCreateData($key);
$gridRef = null;

View File

@ -46,6 +46,7 @@ class BlockChainController extends BaseAuthedController {
public function active721Nft()
{
myself()->_verifySwitch('heroMint');
$type = getReqVal('type', 0);
$uniid = getReqVal('uniid', 0);
$accountAddress = strtolower(getReqVal('account_address', ''));
@ -109,6 +110,7 @@ class BlockChainController extends BaseAuthedController {
public function mintGoldBullion()
{
myself()->_verifySwitch('goldSyn');
$type = getReqVal('type', 0);
$accountAddress = strtolower(getReqVal('account_address', ''));
if ($accountAddress != myself()->_getAddress()) {

View File

@ -18,6 +18,7 @@ class OutAppMintController extends BaseController {
public function mintHero()
{
myself()->_verifySwitch('heroMint');
error_log(json_encode($_REQUEST));
$accountId = getReqVal('account_id', '');
//$accountAddress = User::findUserAddress($accountId);

View File

@ -1,5 +1,7 @@
<?php
namespace services;
use phpcommon\SqlHelper;
class ServerSwitchService {