mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-03 11:09:27 +00:00
26 lines
546 B
PHP
26 lines
546 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 [
|
|
'WAIT_BUYER_PAY' => '等待买家付款',
|
|
'WAIT_SELLER_SEND_GOODS' => '等待卖家发货',
|
|
'TRADE_SUCCESS' => '交易成功',
|
|
'PAID' => '支付完成',
|
|
][$this->attributes['status']] ?? '';
|
|
}
|
|
}
|