This commit is contained in:
aozhiwei 2022-04-03 10:26:31 +08:00
parent 5585735eec
commit 2f69f415ec
2 changed files with 3 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class MarketController extends BaseController {
$nonce = getReqVal('nonce', '');
$signature = getReqVal('signature', '');
$gameId = 2006;
$funcId = 1;
$funcId = MarketService::FUNCID_CREATE;
if (!MarketService::isValidToken($buyerAddress, $token)) {
myself()->_rspErr(100, 'invalid token');
return;

View File

@ -32,6 +32,8 @@ class MarketService extends BaseService {
const PRESALE_STARTED = 2;
const PRESALE_SOLD_OUT = 3;
const FUNCID_CREATE = 1;
const TOKEN_SALT = 'B8E6BD4F-FD7B-E2B8-6688-80A2D8632064';
public static function isTestMode()