商品Address

This commit is contained in:
2025-01-16 11:34:04 +08:00
parent 98a5c4f73f
commit c59d865fd8
33 changed files with 3179 additions and 3 deletions

View File

@ -0,0 +1,38 @@
<?php
namespace plugin\points_mall\model;
use think\admin\Model;
class PointsMallOrderSender extends Model
{
/**
* 关联订单数据
* @return \think\model\relation\HasOne
*/
public function main()
{
return $this->hasOne(PointsMallOrder::class, 'order_no', 'order_no')->with(['items']);
}
/**
* 设置发货时间
* @param mixed $value
* @return string
*/
public function setExpressTimeAttr($value): string
{
return $this->setCreateTimeAttr($value);
}
/**
* 获取发货时间
* @param mixed $value
* @return string
*/
public function getExpressTimeAttr($value): string
{
return $this->getCreateTimeAttr($value);
}
}