This commit is contained in:
aozhiwei 2022-04-01 15:51:44 +08:00
commit 6bd03e8b6f
2 changed files with 14 additions and 0 deletions

View File

@ -103,6 +103,7 @@ CREATE TABLE `t_nft` (
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`), PRIMARY KEY (`idx`),
UNIQUE KEY `token_id` (`token_id`), UNIQUE KEY `token_id` (`token_id`),
KEY `owner_address_token_type` (`owner_address`, `token_type`),
KEY `owner_address` (`owner_address`) KEY `owner_address` (`owner_address`)
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;

View File

@ -494,6 +494,19 @@ class MarketController extends BaseController {
)); ));
} }
public function tokenAuth()
{
$account = getReqVal('account', '');
$token = getReqVal('token', '');
if (!$this->isValidToken($account, $token)) {
myself()->_rspErr(1, 'invalid token');
return;
}
myself()->_rspData(array(
'account' => $account
));
}
public function auth() public function auth()
{ {
$account = getReqVal('account', ''); $account = getReqVal('account', '');