Ken 1 неделя назад
Родитель
Сommit
0128ab16bc
1 измененных файлов с 1 добавлено и 25 удалено
  1. 1 25
      app/Models/Recharge.php

+ 1 - 25
app/Models/Recharge.php

@@ -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');
-    }
 }