'待审核', 'approved' => '已通过', 'processing' => '代付中', 'paid' => '已打款', 'rejected' => '已驳回', 'failed' => '代付失败']; protected $casts = ['agent_id' => 'integer', 'amount' => 'decimal:4', 'fee' => 'decimal:4', 'actual_amount' => 'decimal:4', 'usdt_amount' => 'decimal:4', 'actual_usdt_amount' => 'decimal:4', 'exchange_rate' => 'decimal:4', 'account_snapshot' => 'array', 'audited_at' => 'datetime', 'paid_at' => 'datetime']; public function getStatusTextAttribute(): string { return self::STATUS_TEXT[(string) $this->status] ?? ''; } /** 提现通道,同 account_type(历史数据为空时是 usdt)。 */ public function getChannelAttribute(): string { return (string) ($this->attributes['account_type'] ?? '') ?: 'usdt'; } public function agent() { return $this->belongsTo(Agent::class); } }