From 10ac7d69c27633b30f4ca209323806332409599e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 1 Apr 2022 15:51:10 +0800 Subject: [PATCH] 1 --- webapp/controller/MarketController.class.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index 54f04abc..06246ee0 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -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', '');