This commit is contained in:
aozhiwei 2022-04-01 15:51:10 +08:00
parent 208c8ac757
commit 10ac7d69c2

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()
{
$account = getReqVal('account', '');