初始化
缺陷:主题配色需要优化整体的同风格
This commit is contained in:
27
app/Models/business/OrderPaymentModel.php
Normal file
27
app/Models/business/OrderPaymentModel.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user