Преглед изворни кода

Weenier 168otc项目部署 0630

wesmiler пре 3 година
родитељ
комит
8e1ac14808
2 измењених фајлова са 6 додато и 0 уклоњено
  1. 4 0
      app/Services/Common/CoinLogService.php
  2. 2 0
      app/Services/UsdtWalletService.php

+ 4 - 0
app/Services/Common/CoinLogService.php

@@ -58,11 +58,15 @@ class CoinLogService extends BaseService
         $where = ['a.mark' => 1];
         $type = isset($params['type'])? $params['type'] : 1;
         $changeType = isset($params['change_type'])? $params['change_type'] : 1;
+        $contactType = isset($params['contact_type'])? $params['contact_type'] : 1;
         $coinType = isset($params['coin_type'])? $params['coin_type'] : 1;
         $userId = isset($params['user_id'])? $params['user_id'] : 0;
         if($type>0){
             $where['a.type'] = $type;
         }
+        if($contactType>0){
+            $where['a.contact_type'] = $contactType;
+        }
         if($changeType>0){
             $where['a.change_type'] = $changeType;
         }

+ 2 - 0
app/Services/UsdtWalletService.php

@@ -375,6 +375,7 @@ class UsdtWalletService extends BaseService
 
         $url = sprintf($this->apiUrls['usdt_trx2_transfer_log'], $address, $limit, 'true', 'false');
         $headers = ["TRON-PRO-API-KEY" => $this->config['tron_api_key']];
+        RedisService::set("caches:wallets:recharge_temp_{$userId}",['url'=>$this->config['tron_api_url'] . $url], 600);
         $result = curl_get($this->config['tron_api_url'] . $url, [], $headers, 10);
         $result = $result ? json_decode($result, true) : [];
         $datas = isset($result['data']) ? $result['data'] : [];
@@ -441,6 +442,7 @@ class UsdtWalletService extends BaseService
 
         $url = sprintf($this->apiUrls['usdt_trx2_transfer_log'], $address, $limit, 'false', 'true');
         $headers = ["TRON-PRO-API-KEY" => $this->config['tron_api_key']];
+        RedisService::set("caches:wallets:transfer_temp_{$userId}",['url'=>$this->config['tron_api_url'] . $url], 600);
         $result = curl_get($this->config['tron_api_url'] . $url, [], $headers, 10);
         $result = $result ? json_decode($result, true) : [];
         $datas = isset($result['data']) ? $result['data'] : [];