修复内容

This commit is contained in:
2026-01-30 18:48:13 +08:00
parent 5fe5289e26
commit 76cfa6b278
25 changed files with 943 additions and 289 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace app\api\model;
use think\Model;
use think\model\relation\HasOne;
class OrderPoints extends Model
{
protected $name = 'printer_order';
//关联地址
public function address(): HasOne
{
return $this->hasOne(UserAddress::class, 'id', 'address_id');
}
//关联积分商品
public function pointsGoods(): HasOne
{
return $this->hasOne(GoodsPoints::class, 'id', 'goods_id');
}
}