|
|
@@ -391,7 +391,7 @@ class UsdtWalletService extends BaseService
|
|
|
foreach ($datas as $v) {
|
|
|
$amount = isset($v['value']) ? intval($v['value']) : 0;
|
|
|
$amount = moneyFormat($amount / 1000000, 6);
|
|
|
- $time = isset($v['block_timestamp']) ? intval($v['block_timestamp']) : 0;
|
|
|
+ $time = isset($v['block_timestamp']) ? intval($v['block_timestamp']/1000) : 0;
|
|
|
$txid = isset($v['transaction_id']) ? $v['transaction_id'] : '';
|
|
|
if (!CoinLogService::make()->checkExists('txid', $txid) && $time > time() - 12 * 3600) {
|
|
|
$balance = $this->memberModel->where(['id' => $userId])->value('usdt_num');
|
|
|
@@ -406,7 +406,7 @@ class UsdtWalletService extends BaseService
|
|
|
'txid' => $txid,
|
|
|
'num' => $amount,
|
|
|
'balance' => $balance,
|
|
|
- 'create_time' => intval($time / 1000),
|
|
|
+ 'create_time' => $time? $time : time(),
|
|
|
'update_time' => time(),
|
|
|
'status' => 2,
|
|
|
'mark' => 1,
|
|
|
@@ -459,7 +459,7 @@ class UsdtWalletService extends BaseService
|
|
|
foreach ($datas as $v) {
|
|
|
$amount = isset($v['value']) ? intval($v['value']) : 0;
|
|
|
$amount = moneyFormat($amount / 1000000, 6);
|
|
|
- $time = isset($v['block_timestamp']) ? intval($v['block_timestamp']) : 0;
|
|
|
+ $time = isset($v['block_timestamp']) ? intval($v['block_timestamp']/1000) : 0;
|
|
|
$txid = isset($v['transaction_id']) ? $v['transaction_id'] : '';
|
|
|
if (!CoinLogService::make()->checkExists('txid', $txid) && $time > time() - 12 * 3600) {
|
|
|
$balance = $this->memberModel->where(['id' => $userId])->value('usdt_num');
|
|
|
@@ -474,7 +474,8 @@ class UsdtWalletService extends BaseService
|
|
|
'txid' => $txid,
|
|
|
'num' => $amount,
|
|
|
'balance' => $balance,
|
|
|
- 'create_time' => intval($time / 1000),
|
|
|
+ 'create_time' => $time? $time : time(),
|
|
|
+ 'update_time' => time(),
|
|
|
'status' => 2,
|
|
|
'mark' => 1,
|
|
|
];
|