1
This commit is contained in:
parent
73667b0671
commit
5368924a12
@ -4,8 +4,33 @@ namespace services;
|
||||
|
||||
class SignatureService {
|
||||
|
||||
public static function web3ServiceCheck() {
|
||||
const ERRCODE_SIGN = 2001;
|
||||
|
||||
public static function web3ServiceCheck()
|
||||
{
|
||||
$cbUuid = getReqVal('_cb_uuid', '');
|
||||
$row = SqlHelper::ormSelectOne(
|
||||
myself()->_getMarketMysql(),
|
||||
't_callback',
|
||||
array(
|
||||
'cb_uuid' => $cbUuid
|
||||
)
|
||||
);
|
||||
if (!$row) {
|
||||
myself()-_rspErr(self::ERRCODE);
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
public static function normalMd5Sign($params, $secretKey, $excludeKeys){
|
||||
ksort($params);
|
||||
$paramsStr = '';
|
||||
foreach($params as $key => $val){
|
||||
if (!in_array($key, $excludeKeys)) {
|
||||
$paramsStr = $paramsStr . $key . '=' . $val . $connStr;
|
||||
}
|
||||
}
|
||||
return md5($paramsStr . $$secretKey);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user