| 1234567891011121314151617181920212223242526 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- /**
- * 支付回调日志.
- */
- class PaymentCallback extends Model
- {
- protected $table = 'payment_callback';
- protected $guarded = [];
- public function getStatusLabelAttribute(): string
- {
- return match ($this->status) {
- 'WAIT_BUYER_PAY' => '等待买家付款',
- 'WAIT_SELLER_SEND_GOODS' => '等待卖家发货',
- 'TRADE_SUCCESS' => '交易成功',
- 'PAID' => '支付完成',
- default => '',
- };
- }
- }
|