wallet tron transactions
This commit is contained in:
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Wallet\Platform;
|
||||
|
||||
use App\Bean\Model\Wallet\Wallet\WalletPlatformBindBean;
|
||||
use App\Exceptions\ModelException;
|
||||
use App\Models\Wallet\Base\WalletBaseModel;
|
||||
use App\Models\Wallet\Wallet\WalletAddressModel;
|
||||
use App\Models\Wallet\Wallet\WalletCurrencyModel;
|
||||
use App\Tools\Logs;
|
||||
use App\Tools\Math;
|
||||
use App\Tools\Times;
|
||||
use App\Tools\Tools;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class WalletPlatformBindHistoryModel extends WalletBaseModel
|
||||
{
|
||||
protected $table = 'wallet_platform_bind_history';
|
||||
protected $primaryKey = 'id';
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'orgi_id',
|
||||
'platform_id',
|
||||
'wallet_address_id',
|
||||
'currency_code',
|
||||
'uid',
|
||||
'orgi_created_at',
|
||||
'remark',
|
||||
'created_at',
|
||||
];
|
||||
|
||||
function addHistory($aItem,$remark = ''): \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Builder|bool
|
||||
{
|
||||
$aItem['orgi_created_at'] = $aItem['created_at'];
|
||||
$aItem['orgi_id'] = $aItem['id'];
|
||||
unset($aItem['id']);
|
||||
unset($aItem['created_at']);
|
||||
$aItem['remark'] = $remark;
|
||||
$aItem['created_at'] = Times::getNowDateTime();
|
||||
return $this->addItem($aItem);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user