|
|
@@ -1,26 +1,13 @@
|
|
|
<?php
|
|
|
|
|
|
-
|
|
|
namespace App\Models;
|
|
|
|
|
|
-use App\Constants\HttpStatus;
|
|
|
use App\Constants\Util;
|
|
|
-use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
|
-
|
|
|
-use Illuminate\Notifications\Notifiable;
|
|
|
-use Laravel\Sanctum\HasApiTokens;
|
|
|
-use Illuminate\Database\Eloquent\Builder;
|
|
|
|
|
|
-/**
|
|
|
- * @mixin Builder
|
|
|
- * @method static Builder|static where($column, $operator = null, $value = null, $boolean = 'and')
|
|
|
- */
|
|
|
-class Recharge extends Authenticatable
|
|
|
+class Recharge extends BaseModel
|
|
|
{
|
|
|
- use HasApiTokens, Notifiable;
|
|
|
|
|
|
protected $table = 'recharges';
|
|
|
-// protected $hidden = ['created_at', 'updated_at'];
|
|
|
// protected $fillable = ['member_id', 'confirmations', 'coin', 'txid','block_time','block_height' ,'net' ,'coin' ,'amount' ,'to_address' ,'from_address' ,'status'];
|
|
|
|
|
|
const STATUS_STAY = 0;
|
|
|
@@ -48,15 +35,4 @@ class Recharge extends Authenticatable
|
|
|
{
|
|
|
return Util::ensureUrl($value);
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
- protected function getCreatedAtAttribute($value)
|
|
|
- {
|
|
|
- return \Carbon\Carbon::parse($value)->setTimezone('Asia/Shanghai')->format('Y-m-d H:i:s');
|
|
|
- }
|
|
|
-
|
|
|
- protected function getUpdatedAtAttribute($value)
|
|
|
- {
|
|
|
- return \Carbon\Carbon::parse($value)->setTimezone('Asia/Shanghai')->format('Y-m-d H:i:s');
|
|
|
- }
|
|
|
}
|