|
|
|
@ -4,6 +4,7 @@ namespace App\Model\v3; |
|
|
|
|
|
|
|
use App\Model\Model; |
|
|
|
use App\Constants\v3\Withdrawal; |
|
|
|
use App\Constants\v3\WithdrawalType; |
|
|
|
class StoreWithdrawal extends Model |
|
|
|
{ |
|
|
|
protected $table = 'lanzu_store_withdrawal'; |
|
|
|
@ -11,7 +12,8 @@ class StoreWithdrawal extends Model |
|
|
|
protected $appends = [ |
|
|
|
'state_text', |
|
|
|
'check_time_text', |
|
|
|
'created_at_text' |
|
|
|
'created_at_text', |
|
|
|
'pay_type_text' |
|
|
|
]; |
|
|
|
|
|
|
|
public function getStateTextAttribute() |
|
|
|
@ -32,4 +34,9 @@ class StoreWithdrawal extends Model |
|
|
|
{ |
|
|
|
return date('Y-m-d H:i:s', $this->attributes['created_at']); |
|
|
|
} |
|
|
|
|
|
|
|
public function getPayTypeTextAttribute() |
|
|
|
{ |
|
|
|
return '提现到'.WithdrawalType::getMessage($this->attributes['type']); |
|
|
|
} |
|
|
|
} |