Преглед на файлове

Weenier 168otc项目部署 0630

wesmiler преди 3 години
родител
ревизия
62e38c8b6f
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      app/Services/UsdtWalletService.php

+ 2 - 2
app/Services/UsdtWalletService.php

@@ -214,7 +214,7 @@ class UsdtWalletService extends BaseService
             $amount = moneyFormat($amount/1000000, 6);
             $time = isset($v['block_timestamp'])? intval($v['block_timestamp']) : 0;
             $txid = isset($v['transaction_id'])? $v['transaction_id'] : '';
-            if(!CoinLogService::make()->checkExists('txid', $txid)){
+            if(!CoinLogService::make()->checkExists('txid', $txid) && $time> time() - 6*3600){
                 $balance = $this->memberModel->where(['id'=> $userId])->value('usdt_num');
                 $log = [
                     'user_id'=> $userId,
@@ -275,7 +275,7 @@ class UsdtWalletService extends BaseService
             $amount = moneyFormat($amount/1000000, 6);
             $time = isset($v['block_timestamp'])? intval($v['block_timestamp']) : 0;
             $txid = isset($v['transaction_id'])? $v['transaction_id'] : '';
-            if(!CoinLogService::make()->checkExists('txid', $txid)){
+            if(!CoinLogService::make()->checkExists('txid', $txid) && $time> time() - 6*3600){
                 $balance = $this->memberModel->where(['id'=> $userId])->value('usdt_num');
                 $log = [
                     'user_id'=> $userId,