Files
lgp-admin-plus-api/app/Models/business/OrderPaymentModel.php
LQ bcf54c2727 初始化
缺陷:主题配色需要优化整体的同风格
2026-08-14 23:21:21 +08:00

28 lines
623 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Models\business;
use App\BaseApp\BaseBusinessModel;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* 支付记录cc_order_payment
*
* out_trade_no 有唯一索引,微信重复推送回调时靠它保证幂等。
*/
class OrderPaymentModel extends BaseBusinessModel
{
protected $table = 'order_payment';
protected $guarded = [];
public const STATUS_AUDITING = 0;
public const STATUS_CONFIRMED = 1;
public const STATUS_REJECTED = 2;
public function order(): BelongsTo
{
return $this->belongsTo(OrderModel::class, 'order_id', 'id');
}
}