1
This commit is contained in:
parent
6fcb3e1879
commit
d6016abac1
@ -406,7 +406,7 @@ class BaseController {
|
||||
}
|
||||
}
|
||||
|
||||
public static function verifySwitch($name) {
|
||||
public static function _verifySwitch($name) {
|
||||
myself()->_callServiceStatic('ServerSwitchService', 'verifySwitch', $name);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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()) {
|
||||
|
@ -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);
|
||||
|
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace services;
|
||||
|
||||
use phpcommon\SqlHelper;
|
||||
|
||||
class ServerSwitchService {
|
||||
|
Loading…
x
Reference in New Issue
Block a user