1
This commit is contained in:
parent
ab6296a0b4
commit
fe6ba3fbc1
@ -27,7 +27,6 @@ class Market(object):
|
||||
'url': 'webapp/index.php?c=Market&a=auth',
|
||||
'params': [
|
||||
['account', '', '钱包账号'],
|
||||
['version', '', '版本号'],
|
||||
['nonce', '', 'nonce'],
|
||||
['signature', '', '签名'],
|
||||
['net_id', '', '网络id'],
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user