From fe6ba3fbc1948fcc74c209ec3f03a71f045e468b Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 22 Feb 2022 10:45:42 +0800 Subject: [PATCH] 1 --- doc/Market.py | 1 - webapp/controller/MarketController.class.php | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/Market.py b/doc/Market.py index 435e4343..6521205c 100644 --- a/doc/Market.py +++ b/doc/Market.py @@ -27,7 +27,6 @@ class Market(object): 'url': 'webapp/index.php?c=Market&a=auth', 'params': [ ['account', '', '钱包账号'], - ['version', '', '版本号'], ['nonce', '', 'nonce'], ['signature', '', '签名'], ['net_id', '', '网络id'], diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index 86af53c6..1be8b073 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -468,13 +468,12 @@ class MarketController extends BaseController { public function auth() { - $version = getReqVal('version', ''); + $account = getReqVal('account', ''); $nonce = getReqVal('nonce', ''); $signature = getReqVal('signature', ''); $params = array( 'c' => 'BcService', 'a' => 'authVerifySignature', - 'version' => $version, 'nonce' => $nonce, 'signature' => $signature ); @@ -500,7 +499,7 @@ class MarketController extends BaseController { return; } else { $recovered = getXVal($data, 'recovered', ''); - if (!phpcommon\isSameAddress($recovered, $buyerAddress)) { + if (!phpcommon\isSameAddress($recovered, $account)) { myself()->_rspErr(1, 'Signature verification failed'); die(); return;