|
|
|
@ -336,9 +336,9 @@ class UserWalletService |
|
|
|
{ |
|
|
|
$result = Recharge::query()->with(['coin'])->where(['user_id' => $user_id])->orderBy("id", 'desc')->paginate(); |
|
|
|
foreach ($result as &$row) { |
|
|
|
$row['created_at'] =date("Y-m-d H:i:s",strtotime($row['created_at'])-60*60*12); |
|
|
|
$row['updated_at'] =date("Y-m-d H:i:s",strtotime($row['updated_at'])-60*60*12); |
|
|
|
$row['datetime'] =$row['datetime']-60*60*12; |
|
|
|
$row['created_at'] =date("Y-m-d H:i:s",strtotime($row['created_at'])-60*60*13); |
|
|
|
$row['updated_at'] =date("Y-m-d H:i:s",strtotime($row['updated_at'])-60*60*13); |
|
|
|
$row['datetime'] =$row['datetime']-60*60*13; |
|
|
|
if($row['coin_id'] == 1){ |
|
|
|
if($row['note']){ |
|
|
|
$row['coin_name'] = "USDT-TRC20"; |
|
|
|
@ -472,7 +472,7 @@ class UserWalletService |
|
|
|
$result = Withdraw::query()->with(['coin'])->where(['user_id' => $user_id])->orderBy("id", 'desc')->paginate(); |
|
|
|
foreach ($result as &$row) { |
|
|
|
// $row['updated_at'] = date("Y-m-d H:i:s",strtotime($row['updated_at'])-60*60*12); |
|
|
|
$row['datetime'] = $row['datetime']-60*60*12; |
|
|
|
$row['datetime'] = $row['datetime']-60*60*13; |
|
|
|
if($row['address_type']){ |
|
|
|
if($row['address_type'] == '2'){ |
|
|
|
$row['coin_name'] = "USDT-ERC20"; |
|
|
|
@ -585,7 +585,7 @@ class UserWalletService |
|
|
|
{ |
|
|
|
$result = TransferRecord::query()->with(['coin'])->where(['user_id' => $user_id])->orderBy("id", 'desc')->paginate(); |
|
|
|
foreach ($result as &$row) { |
|
|
|
$row['datetime'] = $row['datetime']-60*60*12; |
|
|
|
$row['datetime'] = $row['datetime']-60*60*13; |
|
|
|
} |
|
|
|
return api_response()->success('SUCCESS', $result); |
|
|
|
} |
|
|
|
@ -600,7 +600,7 @@ class UserWalletService |
|
|
|
//$item['payment_currency'] .= "111"; |
|
|
|
$item['increase_ratio'] = ($currency_price - $item['currency_price']) / $item['currency_price'] *100; // 涨幅比例 |
|
|
|
$item['total_value'] = $item['subscription_currency_amount']*$currency_price; // 总值 |
|
|
|
$item['subscription_time'] = $item['subscription_time']-60*60*12; |
|
|
|
$item['subscription_time'] = $item['subscription_time']-60*60*13; |
|
|
|
} |
|
|
|
//Log::info($result['data']); |
|
|
|
return api_response()->success('SUCCESS', $result); |
|
|
|
|