|
@@ -222,7 +222,7 @@ class CregisPayService extends BaseService
|
|
|
$txid = isset($params['txid'])? trim($params['txid']) : '';
|
|
|
$amount = isset($params['amount'])? floatval($params['amount']) : 0;
|
|
|
$currency = isset($params['currency'])? trim($params['currency']) : '';
|
|
|
-
|
|
|
+ $currency = $currency=='USDT-Solana'? 'USDT': 'Solana';
|
|
|
// 验证金额
|
|
|
if($amount<=0){
|
|
|
RedisService::set("{$cacheKey}:error",['error'=>'交易金额错误','result'=> $params], 7200);
|
|
@@ -243,7 +243,6 @@ class CregisPayService extends BaseService
|
|
|
$symbol = isset($tradeData['token']['symbol']) && $tradeData['token']['symbol']? strtoupper($tradeData['token']['symbol']) : 'USDT';
|
|
|
$decimals = isset($tradeData['token']['decimals']) && $tradeData['token']['decimals']? intval($tradeData['token']['decimals']) : 6;
|
|
|
$realAmount = moneyFormat($tradeAmount/pow(10, $decimals), 6);
|
|
|
- var_dump($tradeData);
|
|
|
if(empty($tradeData) || empty($ownerAddress) || empty($toAddress) || $tradeAmount<=0 || empty($symbol)){
|
|
|
RedisService::set("{$cacheKey}:error",['error'=>'交易hash验证错误','tradeData'=>$tradeData,'result'=> $params], 7200);
|
|
|
return 'Trade hash verify failed';
|