mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-04 19:49:16 +00:00
27 lines
560 B
PHP
27 lines
560 B
PHP
<?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 => '',
|
|
};
|
|
}
|
|
}
|